source: debian/rules @ 56ef3845

Last change on this file since 56ef3845 was 56ef3845, checked in by HungryHobo <HungryHobo@…>, 10 years ago

Make /usr/bin/eepget and /usr/bin/i2prouter symlinks

  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/usr/bin/make -f
2
3build:
4        ant preppkg-linux-only
5        mkdir -p debian/tmp/usr/lib
6        mkdir -p debian/tmp/etc/init.d
7        cp -a debian/scripts/init debian/tmp/etc/init.d/i2p
8        cp -a pkg-temp debian/tmp/usr/lib/i2p
9        chmod +x debian/tmp/usr/lib/i2p/postinstall.sh
10        sed 's|$$INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/wrapper.config > debian/tmp/usr/lib/i2p/a
11        sed 's|$$SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/wrapper.config
12        mkdir -p debian/tmp/usr/bin
13        sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/eepget > debian/tmp/usr/lib/i2p/a
14        mv debian/tmp/usr/lib/i2p/a debian/tmp/usr/lib/i2p/eepget
15        ln -s /usr/lib/i2p/eepget debian/tmp/usr/bin/eepget
16        sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/runplain.sh > debian/tmp/usr/lib/i2p/a
17        sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/runplain.sh
18        sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/i2prouter > debian/tmp/usr/lib/i2p/a
19        sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/i2prouter
20        ln -s /usr/lib/i2p/i2prouter debian/tmp/usr/bin/i2prouter
21        rm debian/tmp/usr/lib/i2p/a
22        touch debian/build
23
24binary: build
25        mkdir -p debian/tmp/DEBIAN
26        dpkg-gencontrol
27        cp -a debian/scripts/postinst debian/scripts/postrm debian/scripts/prerm debian/tmp/DEBIAN
28        dpkg-deb -b debian/tmp ..
29
30clean:
31        rm -f debian/build
32        rm -rf debian/tmp/
33        ant distclean
34        @exit 0
Note: See TracBrowser for help on using the repository browser.