diff options
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 } |