diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-08 14:22:46 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-08 14:22:46 +0300 |
commit | b98f515daa345fb83002a149c1f1f33a7b4644e7 (patch) | |
tree | 89c1aeb1c047ea5c1b4be7bc1782c0d099904ef9 /contrib/gentoo | |
parent | 53f22bd8a8cd4a407b7eb9c9b034b215e2299e30 (diff) | |
download | accel-ppp-b98f515daa345fb83002a149c1f1f33a7b4644e7.tar.gz accel-ppp-b98f515daa345fb83002a149c1f1f33a7b4644e7.zip |
updated contrib files
Diffstat (limited to 'contrib/gentoo')
-rw-r--r-- | contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild (renamed from contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild) | 40 | ||||
-rw-r--r-- | contrib/gentoo/net-dialup/accel-ppp/accel-ppp-9999.ebuild (renamed from contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild) | 36 | ||||
-rw-r--r-- | contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd (renamed from contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd) | 2 | ||||
-rwxr-xr-x | contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init | 20 |
4 files changed, 41 insertions, 57 deletions
diff --git a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild index 7555c184..8ee851f7 100644 --- a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild +++ b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.1.1.ebuild @@ -5,24 +5,23 @@ 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/" +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 l2tp shaper" +IUSE="postgres debug shaper pptp_driver" DEPEND=">=sys-libs/glibc-2.8 dev-libs/openssl dev-libs/libaio - l2tp? ( =dev-libs/libnl-9999 ) - shaper? ( =dev-libs/libnl-9999 ) + shaper? ( =dev-libs/libnl-2 ) postgres? ( >=dev-db/postgresql-base-8.1 )" RDEPEND="$DEPEND - virtual/modutils" + pptp_driver? ( virtual/modutils )" BUILD_TARGETS="default" BUILD_PARAMS="KDIR=${KERNEL_DIR}" @@ -32,7 +31,7 @@ PREFIX="/" MODULE_NAMES="pptp(extra:${S}/driver/)" src_prepare() { - sed -i -e "/mkdir/d" "${S}/accel-pptpd/CMakeLists.txt" + sed -i -e "/mkdir/d" "${S}/accel-pppd/CMakeLists.txt" sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt" } @@ -44,10 +43,6 @@ src_configure() { if use postgres; then mycmakeargs+=( "-DLOG_PGSQL=TRUE" ) fi - - if use l2tp; then - mycmakeargs+=( "-DL2TP=TRUE" ) - fi if use shaper; then mycmakeargs+=( "-DSHAPER=TRUE" ) @@ -58,23 +53,28 @@ src_configure() { src_compile() { cmake-utils_src_compile - - cd ${S}/driver - linux-mod_src_compile || die "failed to build driver" + + if use pptp_driver; then + cd ${S}/driver + linux-mod_src_compile || die "failed to build driver" + fi } src_install() { cmake-utils_src_install - cd ${S}/driver - linux-mod_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-pptp/files/pptpd-init" accel-pptpd + 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-pptp/files/pptpd-confd" accel-pptpd + newins "${S}/contrib/gentoo/net-dialup/accel-ppp/files/pppd-confd" accel-pppd - dodir /var/log/accel-pptp + dodir /var/log/accel-ppp + dodir /var/run/accel-ppp dodir /var/run/radattr } diff --git a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-9999.ebuild index cd158d60..03f2a513 100644 --- a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild +++ b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-9999.ebuild @@ -5,16 +5,16 @@ EAPI=2 inherit eutils git linux-mod cmake-utils -EGIT_REPO_URI="git://accel-pptp.git.sourceforge.net/gitroot/accel-pptp/accel-pptp" +EGIT_REPO_URI="git://accel-ppp.git.sourceforge.net/gitroot/accel-ppp/accel-ppp" -DESCRIPTION="Point-to-Point Tunnelling Protocol Client/Server for Linux" +DESCRIPTION="PPtP/L2TP/PPPoE Server for Linux" SRC_URI="" -HOMEPAGE="http://accel-pptp.sourceforge.net/" +HOMEPAGE="http://accel-ppp.sourceforge.net/" SLOT="0" LICENSE="GPL" KEYWORDS="~amd64 ~x86" -IUSE="postgres debug shaper" +IUSE="postgres debug shaper pptp_driver" DEPEND=">=sys-libs/glibc-2.8 dev-libs/openssl @@ -23,7 +23,7 @@ DEPEND=">=sys-libs/glibc-2.8 postgres? ( >=dev-db/postgresql-base-8.1 )" RDEPEND="$DEPEND - virtual/modutils" + pptp_driver? ( virtual/modutils )" BUILD_TARGETS="default" BUILD_PARAMS="KDIR=${KERNEL_DIR}" @@ -37,8 +37,8 @@ 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 "/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" } @@ -61,24 +61,28 @@ src_configure() { src_compile() { cmake-utils_src_compile - cd ${S}/driver - #convert_to_m Makefile - linux-mod_src_compile || die "failed to build driver" + 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 - cd ${S}/driver - linux-mod_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-pptp/files/pptpd-init" accel-pptpd + 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-pptp/files/pptpd-confd" accel-pptpd + newins "${S}/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd" accel-pppd - dodir /var/log/accel-pptp - dodir /var/run/accel-pptp + dodir /var/log/accel-ppp + dodir /var/run/accel-ppp dodir /var/run/radattr } diff --git a/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd b/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd index ddc7aed9..6bc0dffe 100644 --- a/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd +++ b/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd @@ -2,4 +2,4 @@ # Any extra options you want to pass to pptpd # on start-up should be put here. -PPTPD_OPTS="-d -c /etc/accel-pptp.conf" +ACCEL_PPPD_OPTS="-d -c /etc/accel-ppp.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 f9155b4c..00000000 --- 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 -} |