From b98f515daa345fb83002a149c1f1f33a7b4644e7 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sat, 8 Jan 2011 14:22:46 +0300 Subject: updated contrib files --- CMakeLists.txt | 2 +- cmake/cpack.cmake | 4 +- cmake/debian/debian.cmake | 12 +-- contrib/debian/accel-ppp-default | 5 ++ contrib/debian/accel-ppp-init | 59 +++++++++++++++ contrib/debian/accel-pptp-default | 5 -- contrib/debian/accel-pptp-init | 59 --------------- .../net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild | 80 ++++++++++++++++++++ .../net-dialup/accel-ppp/accel-ppp-9999.ebuild | 88 ++++++++++++++++++++++ .../net-dialup/accel-ppp/files/accel-pppd-confd | 5 ++ .../net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild | 80 -------------------- .../net-dialup/accel-pptp/accel-pptp-9999.ebuild | 84 --------------------- .../gentoo/net-dialup/accel-pptp/files/pptpd-confd | 5 -- .../gentoo/net-dialup/accel-pptp/files/pptpd-init | 20 ----- 14 files changed, 246 insertions(+), 262 deletions(-) create mode 100644 contrib/debian/accel-ppp-default create mode 100755 contrib/debian/accel-ppp-init delete mode 100644 contrib/debian/accel-pptp-default delete mode 100755 contrib/debian/accel-pptp-init create mode 100644 contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild create mode 100644 contrib/gentoo/net-dialup/accel-ppp/accel-ppp-9999.ebuild create mode 100644 contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd delete mode 100644 contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild delete mode 100644 contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild delete mode 100644 contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd delete mode 100755 contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init diff --git a/CMakeLists.txt b/CMakeLists.txt index d5385f6..f61780a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6) cmake_policy(SET CMP0005 NEW) cmake_policy(SET CMP0003 OLD) -PROJECT (accel-pptpd C) +PROJECT (accel-pppd C) include(cmake/cpack.cmake) diff --git a/cmake/cpack.cmake b/cmake/cpack.cmake index c8aa4e0..a59af72 100644 --- a/cmake/cpack.cmake +++ b/cmake/cpack.cmake @@ -4,9 +4,9 @@ SET(CPACK_PACKAGE_VERSION_MAJOR "1") SET(CPACK_PACKAGE_VERSION_MINOR "3") SET(CPACK_PACKAGE_VERSION_PATCH "2") -SET(CPACK_PACKAGE_NAME "accel-pptp") +SET(CPACK_PACKAGE_NAME "accel-ppp") SET(CPACK_PACKAGE_CONTACT "Dmitry Kozlov ") -SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "High-performance multi-protocol tunneling server for Linux") +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "PPtP/L2TP/PPPoE server for Linux") SET(CPACK_PACKAGE_VENDOR "Dmitry Kozlov") SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README") diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake index 1e8f0b7..75c823d 100644 --- a/cmake/debian/debian.cmake +++ b/cmake/debian/debian.cmake @@ -1,9 +1,9 @@ SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr") -SET(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}) +SET(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}) if (BUILD_DRIVER_ONLY) - SET(CPACK_PACKAGE_NAME "accel-pptp-kmod") - SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "accel-pptp kernel module") + SET(CPACK_PACKAGE_NAME "accel-ppp-kmod") + SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "accel-ppp kernel module") SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian-kmod/postinst") INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/driver/driver/pptp.ko DESTINATION lib/modules/${DEBIAN_KDIR}/extra) #SET(CPACK_DEBIAN_PACKAGE_DEPENDS "linux-image (= ${LINUX_IMAGE})") @@ -11,7 +11,7 @@ else (BUILD_DRIVER_ONLY) SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.7), libssl0.9.8 (>= 0.9.8), libpcre3 (>= 7.6)") SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst;${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/conffiles") - INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/accel-pptpd/accel-pptp.conf DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc RENAME accel-pptp.conf.dist) - INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-pptp-init DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/init.d RENAME accel-pptp) - INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-pptp-default DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/default RENAME accel-pptp) + INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/accel-pppd/accel-ppp.conf DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc RENAME accel-ppp.conf.dist) + INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-init DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/init.d RENAME accel-ppp) + INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-default DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/default RENAME accel-ppp) endif (BUILD_DRIVER_ONLY) diff --git a/contrib/debian/accel-ppp-default b/contrib/debian/accel-ppp-default new file mode 100644 index 0000000..50a75c9 --- /dev/null +++ b/contrib/debian/accel-ppp-default @@ -0,0 +1,5 @@ +# Config file for /etc/init.d/accel-pptp + +# Any extra options you want to pass to aceel-pptpd +# on start-up should be put here. +ACCEL_PPTPD_OPTS="-c /etc/accel-pptp.conf" diff --git a/contrib/debian/accel-ppp-init b/contrib/debian/accel-ppp-init new file mode 100755 index 0000000..7918ee6 --- /dev/null +++ b/contrib/debian/accel-ppp-init @@ -0,0 +1,59 @@ +#!/bin/sh +# /etc/init.d/accel-pppd: set up the accel-ppp server +### BEGIN INIT INFO +# Provides: accel-ppp +# Required-Start: $networking +# Required-Stop: $networking +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +### END INIT INFO + +set -e + +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +. /lib/lsb/init-functions + +if test -f /etc/default/accel-ppp; then + . /etc/default/accel-ppp +fi + +if [ -z $ACCEL_PPPD_OPTS ]; then + ACCEL_PPPD_OPTS="-c /etc/accel-ppp.conf" +fi + +case "$1" in + start) + log_daemon_msg "Starting PPtP/L2TP/PPPoE server" "accel-pppd" + if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pppd -- -d -p /var/run/accel-pppd.pid $ACCEL_PPPD_OPTS; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart) + log_daemon_msg "Restarting PPtP/L2TP/PPPoE server" "accel-pppd" + start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pppd.pid + if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pppd -- -d -p /var/run/accel-pppd.pid $ACCEL_PPPD_OPTS; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + + stop) + log_daemon_msg "Stopping PPtP/L2TP/PPPoE server" "accel-pppd" + start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pppd.pid + log_end_msg 0 + ;; + + status) + do_status + ;; + *) + log_success_msg "Usage: /etc/init.d/accel-ppp {start|stop|status|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/contrib/debian/accel-pptp-default b/contrib/debian/accel-pptp-default deleted file mode 100644 index 50a75c9..0000000 --- a/contrib/debian/accel-pptp-default +++ /dev/null @@ -1,5 +0,0 @@ -# Config file for /etc/init.d/accel-pptp - -# Any extra options you want to pass to aceel-pptpd -# on start-up should be put here. -ACCEL_PPTPD_OPTS="-c /etc/accel-pptp.conf" diff --git a/contrib/debian/accel-pptp-init b/contrib/debian/accel-pptp-init deleted file mode 100755 index fd48332..0000000 --- a/contrib/debian/accel-pptp-init +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh -# /etc/init.d/accel-pptpd: set up the accel-pptp server -### BEGIN INIT INFO -# Provides: accel-pptp -# Required-Start: $networking -# Required-Stop: $networking -# Default-Start: 2 3 4 5 -# Default-Stop: 1 -### END INIT INFO - -set -e - -PATH=/bin:/usr/bin:/sbin:/usr/sbin - -. /lib/lsb/init-functions - -if test -f /etc/default/accel-pptp; then - . /etc/default/accel-pptp -fi - -if [ -z $ACCEL_PPPTD_OPTS ]; then - ACCEL_PPTPD_OPTS="-c /etc/accel-pptp.conf" -fi - -case "$1" in - start) - log_daemon_msg "Starting accel-pptp server" "accel-pptpd" - if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pptpd -- -d -p /var/run/accel-pptpd.pid $ACCEL_PPTPD_OPTS; then - log_end_msg 0 - else - log_end_msg 1 - fi - ;; - restart) - log_daemon_msg "Restarting accel-pptp server" "accel-pptpd" - start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pptpd.pid - if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pptpd -- -d -p /var/run/accel-pptpd.pid $ACCEL_PPTPD_OPTS; then - log_end_msg 0 - else - log_end_msg 1 - fi - ;; - - stop) - log_daemon_msg "Stopping accel-pptp server" "accel-pptpd" - start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pptpd.pid - log_end_msg 0 - ;; - - status) - do_status - ;; - *) - log_success_msg "Usage: /etc/init.d/accel-pptp {start|stop|status|restart}" - exit 1 - ;; -esac - -exit 0 diff --git a/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild new file mode 100644 index 0000000..8ee851f --- /dev/null +++ b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit eutils linux-mod cmake-utils + +DESCRIPTION="PPtP/L2TP/PPPoE server for Linux" +SRC_URI="http://sourceforge.net/projects/accel-ppp/files/accel-ppp/${P}.tar.bz2" +HOMEPAGE="http://accel-ppp.sourceforge.net/" + +SLOT="0" +LICENSE="GPL" +KEYWORDS="~amd64 ~x86" +IUSE="postgres debug shaper pptp_driver" + +DEPEND=">=sys-libs/glibc-2.8 + dev-libs/openssl + dev-libs/libaio + shaper? ( =dev-libs/libnl-2 ) + postgres? ( >=dev-db/postgresql-base-8.1 )" + +RDEPEND="$DEPEND + pptp_driver? ( virtual/modutils )" + +BUILD_TARGETS="default" +BUILD_PARAMS="KDIR=${KERNEL_DIR}" +CONFIG_CHECK="PPP PPPOE" +MODULESD_PPTP_ALIASES=("net-pf-24 pptp") +PREFIX="/" +MODULE_NAMES="pptp(extra:${S}/driver/)" + +src_prepare() { + sed -i -e "/mkdir/d" "${S}/accel-pppd/CMakeLists.txt" + sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt" +} + +src_configure() { + if use debug; then + mycmakeargs+=( "-DCMAKE_BUILD_TYPE=Debug" ) + fi + + if use postgres; then + mycmakeargs+=( "-DLOG_PGSQL=TRUE" ) + fi + + if use shaper; then + mycmakeargs+=( "-DSHAPER=TRUE" ) + fi + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use pptp_driver; then + cd ${S}/driver + linux-mod_src_compile || die "failed to build driver" + fi +} + +src_install() { + cmake-utils_src_install + + if use pptp_driver; then + cd ${S}/driver + linux-mod_src_install + fi + + exeinto /etc/init.d + newexe "${S}/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init" accel-pppd + + insinto /etc/conf.d + newins "${S}/contrib/gentoo/net-dialup/accel-ppp/files/pppd-confd" accel-pppd + + dodir /var/log/accel-ppp + dodir /var/run/accel-ppp + dodir /var/run/radattr +} diff --git a/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-9999.ebuild b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-9999.ebuild new file mode 100644 index 0000000..03f2a51 --- /dev/null +++ b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-9999.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit eutils git linux-mod cmake-utils + +EGIT_REPO_URI="git://accel-ppp.git.sourceforge.net/gitroot/accel-ppp/accel-ppp" + +DESCRIPTION="PPtP/L2TP/PPPoE Server for Linux" +SRC_URI="" +HOMEPAGE="http://accel-ppp.sourceforge.net/" + +SLOT="0" +LICENSE="GPL" +KEYWORDS="~amd64 ~x86" +IUSE="postgres debug shaper pptp_driver" + +DEPEND=">=sys-libs/glibc-2.8 + dev-libs/openssl + dev-libs/libaio + shaper? ( =dev-libs/libnl-2 ) + postgres? ( >=dev-db/postgresql-base-8.1 )" + +RDEPEND="$DEPEND + pptp_driver? ( virtual/modutils )" + +BUILD_TARGETS="default" +BUILD_PARAMS="KDIR=${KERNEL_DIR}" +CONFIG_CHECK="PPP PPPOE" +MODULESD_PPTP_ALIASES=("net-pf-24 pptp") +PREFIX="/" +MODULE_NAMES="pptp(extra:${S}/driver/)" + +src_unpack () { + git_src_unpack +} + +src_prepare() { + sed -i -e "/mkdir/d" "${S}/accel-pppd/CMakeLists.txt" + sed -i -e "/echo/d" "${S}/accel-pppd/CMakeLists.txt" + sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt" +} + +src_configure() { + if use debug; then + mycmakeargs+=( "-DCMAKE_BUILD_TYPE=Debug" ) + fi + + if use postgres; then + mycmakeargs+=( "-DLOG_PGSQL=TRUE" ) + fi + + if use shaper; then + mycmakeargs+=( "-DSHAPER=TRUE" ) + fi + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use pptp_driver; then + cd ${S}/driver + #convert_to_m Makefile + linux-mod_src_compile || die "failed to build driver" + fi +} + +src_install() { + cmake-utils_src_install + + if use pptp_driver; then + cd ${S}/driver + linux-mod_src_install + fi + + exeinto /etc/init.d + newexe "${S}/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init" accel-pppd + + insinto /etc/conf.d + newins "${S}/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd" accel-pppd + + dodir /var/log/accel-ppp + dodir /var/run/accel-ppp + dodir /var/run/radattr +} diff --git a/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd b/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd new file mode 100644 index 0000000..6bc0dff --- /dev/null +++ b/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd @@ -0,0 +1,5 @@ +# Config file for /etc/init.d/accel-pptpd + +# Any extra options you want to pass to pptpd +# on start-up should be put here. +ACCEL_PPPD_OPTS="-d -c /etc/accel-ppp.conf" diff --git a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild b/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild deleted file mode 100644 index 7555c18..0000000 --- a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=2 - -inherit eutils linux-mod cmake-utils - -DESCRIPTION="Point-to-Point Tunnelling Protocol Client/Server for Linux" -SRC_URI="http://sourceforge.net/projects/accel-pptp/files/accel-pptp/${P}.tar.bz2" -HOMEPAGE="http://accel-pptp.sourceforge.net/" - -SLOT="0" -LICENSE="GPL" -KEYWORDS="~amd64 ~x86" -IUSE="postgres debug l2tp shaper" - -DEPEND=">=sys-libs/glibc-2.8 - dev-libs/openssl - dev-libs/libaio - l2tp? ( =dev-libs/libnl-9999 ) - shaper? ( =dev-libs/libnl-9999 ) - postgres? ( >=dev-db/postgresql-base-8.1 )" - -RDEPEND="$DEPEND - virtual/modutils" - -BUILD_TARGETS="default" -BUILD_PARAMS="KDIR=${KERNEL_DIR}" -CONFIG_CHECK="PPP PPPOE" -MODULESD_PPTP_ALIASES=("net-pf-24 pptp") -PREFIX="/" -MODULE_NAMES="pptp(extra:${S}/driver/)" - -src_prepare() { - sed -i -e "/mkdir/d" "${S}/accel-pptpd/CMakeLists.txt" - sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt" -} - -src_configure() { - if use debug; then - mycmakeargs+=( "-DCMAKE_BUILD_TYPE=Debug" ) - fi - - if use postgres; then - mycmakeargs+=( "-DLOG_PGSQL=TRUE" ) - fi - - if use l2tp; then - mycmakeargs+=( "-DL2TP=TRUE" ) - fi - - if use shaper; then - mycmakeargs+=( "-DSHAPER=TRUE" ) - fi - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile - - cd ${S}/driver - linux-mod_src_compile || die "failed to build driver" -} - -src_install() { - cmake-utils_src_install - - cd ${S}/driver - linux-mod_src_install - - exeinto /etc/init.d - newexe "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init" accel-pptpd - - insinto /etc/conf.d - newins "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd" accel-pptpd - - dodir /var/log/accel-pptp - dodir /var/run/radattr -} diff --git a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild b/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild deleted file mode 100644 index cd158d6..0000000 --- a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=2 - -inherit eutils git linux-mod cmake-utils - -EGIT_REPO_URI="git://accel-pptp.git.sourceforge.net/gitroot/accel-pptp/accel-pptp" - -DESCRIPTION="Point-to-Point Tunnelling Protocol Client/Server for Linux" -SRC_URI="" -HOMEPAGE="http://accel-pptp.sourceforge.net/" - -SLOT="0" -LICENSE="GPL" -KEYWORDS="~amd64 ~x86" -IUSE="postgres debug shaper" - -DEPEND=">=sys-libs/glibc-2.8 - dev-libs/openssl - dev-libs/libaio - shaper? ( =dev-libs/libnl-2 ) - postgres? ( >=dev-db/postgresql-base-8.1 )" - -RDEPEND="$DEPEND - virtual/modutils" - -BUILD_TARGETS="default" -BUILD_PARAMS="KDIR=${KERNEL_DIR}" -CONFIG_CHECK="PPP PPPOE" -MODULESD_PPTP_ALIASES=("net-pf-24 pptp") -PREFIX="/" -MODULE_NAMES="pptp(extra:${S}/driver/)" - -src_unpack () { - git_src_unpack -} - -src_prepare() { - sed -i -e "/mkdir/d" "${S}/accel-pptpd/CMakeLists.txt" - sed -i -e "/echo/d" "${S}/accel-pptpd/CMakeLists.txt" - sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt" -} - -src_configure() { - if use debug; then - mycmakeargs+=( "-DCMAKE_BUILD_TYPE=Debug" ) - fi - - if use postgres; then - mycmakeargs+=( "-DLOG_PGSQL=TRUE" ) - fi - - if use shaper; then - mycmakeargs+=( "-DSHAPER=TRUE" ) - fi - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile - - cd ${S}/driver - #convert_to_m Makefile - linux-mod_src_compile || die "failed to build driver" -} - -src_install() { - cmake-utils_src_install - - cd ${S}/driver - linux-mod_src_install - - exeinto /etc/init.d - newexe "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init" accel-pptpd - - insinto /etc/conf.d - newins "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd" accel-pptpd - - dodir /var/log/accel-pptp - dodir /var/run/accel-pptp - dodir /var/run/radattr -} diff --git a/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd b/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd deleted file mode 100644 index ddc7aed..0000000 --- a/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd +++ /dev/null @@ -1,5 +0,0 @@ -# Config file for /etc/init.d/accel-pptpd - -# Any extra options you want to pass to pptpd -# on start-up should be put here. -PPTPD_OPTS="-d -c /etc/accel-pptp.conf" diff --git a/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init b/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init deleted file mode 100755 index f9155b4..0000000 --- a/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init +++ /dev/null @@ -1,20 +0,0 @@ -#!/sbin/runscript - -depend() { - need net -} - -start() { - ebegin "Starting accel-pptpd" - start-stop-daemon --start --quiet --exec /usr/sbin/accel-pptpd -- -p /var/run/pptpd.pid ${PPTPD_OPTS} - eend $? -} - -stop() { - ebegin "Stopping accel-pptpd" - start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid - result=$? - start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/accel-pptpd - result=$(( $result + $? )) - eend $result -} -- cgit v1.2.3