diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-11-06 18:59:44 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-11-06 18:59:44 +0100 |
commit | 5b1b01086284b18a85e795d2ba18ec8d3d21a7e7 (patch) | |
tree | be89ee0150065f290499a45c34f066f46fc2bd2f /extra/knock/Pkgfile | |
parent | 2e1e40c963b2a73d7e38fe2ea09c7dbed39c3bc4 (diff) | |
download | nutyx-pakxe-5b1b01086284b18a85e795d2ba18ec8d3d21a7e7.tar.gz nutyx-pakxe-5b1b01086284b18a85e795d2ba18ec8d3d21a7e7.tar.bz2 nutyx-pakxe-5b1b01086284b18a85e795d2ba18ec8d3d21a7e7.tar.xz nutyx-pakxe-5b1b01086284b18a85e795d2ba18ec8d3d21a7e7.zip |
knock, ajoute du service et man pages au bon endroit
Diffstat (limited to 'extra/knock/Pkgfile')
-rw-r--r-- | extra/knock/Pkgfile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/extra/knock/Pkgfile b/extra/knock/Pkgfile index 7c9e15ca0..537c88afe 100644 --- a/extra/knock/Pkgfile +++ b/extra/knock/Pkgfile @@ -7,14 +7,26 @@ name=knock version=0.5 release=1 -source=(http://www.zeroflux.org/proj/knock/files/$name-$version.tar.gz) +source=(http://www.zeroflux.org/proj/knock/files/$name-$version.tar.gz\ + knockd) build() { cd $name-$version # build-time config echo "#include <limits.h>" >> src/list.h - ./configure --prefix=/usr + ./configure --prefix=/usr \ + --mandir=/usr/share/man make make DESTDIR=$PKG install + # Installation du service + mkdir -v -p $PKG/etc/rc.d/init.d + mkdir -v -p $PKG/etc/rc.d/rc{0,1,3,4,5,6}.d + install -m755 ../knockd $PKG/etc/rc.d/init.d/ + ln -svf ../init.d/knockd $PKG/etc/rc.d/rc3.d/S20knockd + ln -svf ../init.d/knockd $PKG/etc/rc.d/rc5.d/S20knockd + ln -svf ../init.d/knockd $PKG/etc/rc.d/rc4.d/S20knockd + ln -svf ../init.d/knockd $PKG/etc/rc.d/rc0.d/K90knockd + ln -svf ../init.d/knockd $PKG/etc/rc.d/rc1.d/K90knockd + ln -svf ../init.d/knockd $PKG/etc/rc.d/rc6.d/K90knockd } |