blob: 537c88afe71325915213890714ca52143bd4b2ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Description: Port knocking
# URL: http://www.zeroflux.org/projects/knock
# Maintainer: Cobex4
# Packager: cobex4 at gmail dot com
# Depends on: libpcap
name=knock
version=0.5
release=1
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 \
--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
}
|