From 2927c441e6f86447e35c8e3a760aef8315244b03 Mon Sep 17 00:00:00 2001 From: cobex4 Date: Sat, 6 Nov 2010 20:38:19 +0100 Subject: pptpd, nouveau port 1.3.4-1 --- base/pptpd/Pkgfile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 base/pptpd/Pkgfile (limited to 'base/pptpd/Pkgfile') diff --git a/base/pptpd/Pkgfile b/base/pptpd/Pkgfile new file mode 100644 index 000000000..0e6aa35d8 --- /dev/null +++ b/base/pptpd/Pkgfile @@ -0,0 +1,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 + + +} -- cgit v1.2.3-70-g09d2