From 5b1b01086284b18a85e795d2ba18ec8d3d21a7e7 Mon Sep 17 00:00:00 2001 From: tnut Date: Sat, 6 Nov 2010 18:59:44 +0100 Subject: knock, ajoute du service et man pages au bon endroit --- extra/knock/Pkgfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'extra/knock/Pkgfile') 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 " >> 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 } -- cgit v1.2.3-70-g09d2