summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/pptpd/.footprint34
-rw-r--r--base/pptpd/.md5sum2
-rw-r--r--base/pptpd/Pkgfile40
-rw-r--r--base/pptpd/pptpd22
4 files changed, 98 insertions, 0 deletions
diff --git a/base/pptpd/.footprint b/base/pptpd/.footprint
new file mode 100644
index 000000000..661651b80
--- /dev/null
+++ b/base/pptpd/.footprint
@@ -0,0 +1,34 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/rc.d/
+drwxr-xr-x root/root etc/rc.d/init.d/
+-rwxr-xr-x root/root etc/rc.d/init.d/pptpd
+drwxr-xr-x root/root etc/rc.d/rc0.d/
+lrwxrwxrwx root/root etc/rc.d/rc0.d/K90pptpd -> ../init.d/pptpd
+drwxr-xr-x root/root etc/rc.d/rc1.d/
+lrwxrwxrwx root/root etc/rc.d/rc1.d/K90pptpd -> ../init.d/pptpd
+drwxr-xr-x root/root etc/rc.d/rc3.d/
+lrwxrwxrwx root/root etc/rc.d/rc3.d/S20pptpd -> ../init.d/pptpd
+drwxr-xr-x root/root etc/rc.d/rc4.d/
+lrwxrwxrwx root/root etc/rc.d/rc4.d/S20pptpd -> ../init.d/pptpd
+drwxr-xr-x root/root etc/rc.d/rc5.d/
+lrwxrwxrwx root/root etc/rc.d/rc5.d/S20pptpd -> ../init.d/pptpd
+drwxr-xr-x root/root etc/rc.d/rc6.d/
+lrwxrwxrwx root/root etc/rc.d/rc6.d/K90pptpd -> ../init.d/pptpd
+-rw-r--r-- root/root etc/pptpd.conf
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/bcrelay
+-rwxr-xr-x root/root usr/sbin/pptpctrl
+-rwxr-xr-x root/root usr/sbin/pptpd
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/pptpd.conf.5.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/pptpctrl.8.gz
+-rw-r--r-- root/root usr/share/man/man8/pptpd.8.gz
+drwxr-xr-x root/root usr/share/man5/
+-rw-r--r-- root/root usr/share/man5/pptpd.conf.5.gz
+drwxr-xr-x root/root usr/share/man8/
+-rw-r--r-- root/root usr/share/man8/pptpctrl.8.gz
+-rw-r--r-- root/root usr/share/man8/pptpd.8.gz
diff --git a/base/pptpd/.md5sum b/base/pptpd/.md5sum
new file mode 100644
index 000000000..f2d7a03a1
--- /dev/null
+++ b/base/pptpd/.md5sum
@@ -0,0 +1,2 @@
+93fe7e9f93563d3c21e4d9f4de65db5f pptpd
+b38df9c431041922c997c1148bedf591 pptpd-1.3.4.tar.gz
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
+
+
+}
diff --git a/base/pptpd/pptpd b/base/pptpd/pptpd
new file mode 100644
index 000000000..f21451059
--- /dev/null
+++ b/base/pptpd/pptpd
@@ -0,0 +1,22 @@
+#!/bin/sh
+. /etc/sysconfig/rc
+. $rc_functions
+
+pidfile=/var/run/pptpd.pid
+
+case "$1" in
+ start)
+ boot_mesg "Starting PPTPD Server..."
+ loadproc /usr/sbin/pptpd -d;;
+
+ stop)
+ boot_mesg "Stopping PPTPD Server..."
+ killproc /usr/sbin/pptpd
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop}"
+ exit 1
+ ;;
+esac
+