summaryrefslogtreecommitdiffstats
path: root/pptpd/Pkgfile
blob: 0e6aa35d84e03eb1475a7bc7587ad4f4ed777e42 (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
33
34
35
36
37
38
39
40
# Description: Serveur Poptop vpn léger et simple à mettre en place
# URL: http://www.poptop.org/
# Maintainer: Cobex4
# Packager: cobex4 at gmail dot com

name=pptpd
version=1.3.4
release=1
source=(http://downloads.sourceforge.net/sourceforge/poptop/$name-$version.tar.gz\
	pptpd)

build() {
        cd $name-$version

        ./configure --prefix=/usr --mandir=/usr/share/man
        make
        make DESTDIR=$PKG install

	autoreconf -i
	./configure --prefix=/usr --libdir=/usr/lib --exec-prefix=/usr --mandir=/usr/share

	make
	make DESTDIR=$PKG install

	mkdir -p $PKG/etc/ 
	echo "# Lisez le manuel et écrivé la configuration de votre pptpd ici" > $PKG/etc/pptpd.conf

	# 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 ../pptpd $PKG/etc/rc.d/init.d/
        ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc3.d/S20pptpd
        ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc5.d/S20pptpd
        ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc4.d/S20pptpd
        ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc0.d/K90pptpd
        ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc1.d/K90pptpd
        ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc6.d/K90pptpd


}