diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2007-06-07 12:38:46 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2007-06-07 12:38:46 +0000 |
commit | 78b39279292a83b35ab2323cf553b002d3c48e2b (patch) | |
tree | a1d0efdf6782937524e51ea1584b78d227c7d69f /packages/rp-pppoe/rp-pppoe_3.8.bb | |
parent | 44f91ce2343c5f253248141b3d8f4fd656a33891 (diff) |
rp-pppoe 3.8: More cleanups to the pppoe package:
* Seperate out the server, sniff and relay programs from the main
package.
* Add an init script for the server.
* Add templates to the AC_DEFINE's in the configure script so the
variables are correctly added to the header. Without this the
variables don't get added and server and relay complain about not
being able to be used on linux 2.0 system.
Diffstat (limited to 'packages/rp-pppoe/rp-pppoe_3.8.bb')
-rw-r--r-- | packages/rp-pppoe/rp-pppoe_3.8.bb | 39 |
1 files changed, 31 insertions, 8 deletions
diff --git a/packages/rp-pppoe/rp-pppoe_3.8.bb b/packages/rp-pppoe/rp-pppoe_3.8.bb index ae3e52bfce..916201e3da 100644 --- a/packages/rp-pppoe/rp-pppoe_3.8.bb +++ b/packages/rp-pppoe/rp-pppoe_3.8.bb @@ -2,17 +2,20 @@ DESCRIPTION = "A user-mode PPPoE client and server suite for Linux" HOMEPAGE = "http://www.roaringpenguin.com/en/penguin/openSourceProducts/rpPppoe" SECTION = "console/network" LICENSE = "GPLv2" -RDEPENDS = "ppp" -RRECOMMENDS = "ppp-oe" -PR = "r1" +RDEPENDS_${PN} = "ppp" +RDEPENDS_${PN}-server = "ppp" +RRECOMMENDS_${PN} = "ppp-oe" +PR = "r2" SRC_URI = "http://www.roaringpenguin.com/files/download/${P}.tar.gz \ file://configure_in_cross.patch;patch=1;pnum=2 \ - file://pppoe-src-restrictions.patch;patch=1;pnum=2" + file://pppoe-src-restrictions.patch;patch=1;pnum=2 \ + file://pppoe-server.default \ + file://pppoe-server.init" S = "${WORKDIR}/${P}/src" -inherit autotools +inherit autotools update-rc.d do_install() { # Set timeout to 0. Fixes lots of reconnect issues @@ -21,18 +24,38 @@ do_install() { sed -i -e 's,\(CONNECT_TIMEOUT=\)30,\10,g' \ -e 's,\(LINUX_PLUGIN=\)/etc/ppp/plugins/rp-pppoe.so,\1rp-pppoe.so,g' \ ${S}/../configs/pppoe.conf + # Install init script and default settings + install -m 0755 -d ${D}${sysconfdir}/default ${D}${sysconfdir}/init.d + install -m 0644 ${WORKDIR}/pppoe-server.default ${D}${sysconfdir}/default/pppoe-server + install -m 0755 ${WORKDIR}/pppoe-server.init ${D}${sysconfdir}/init.d/pppoe-server # Install oe_runmake -C ${S} RPM_INSTALL_ROOT=${D} docdir=${docdir} install } -pkg_postinst() { +# Insert server package before main package +PACKAGES = "${PN}-dbg ${PN}-server ${PN}-relay ${PN}-sniff ${PN} ${PN}-doc" + +FILES_${PN}-server = "${sysconfdir}/default/pppoe-server \ + ${sysconfdir}/init.d/pppoe-server \ + ${sbindir}/pppoe-server \ + ${sysconfdir}/ppp/pppoe-server-options" +FILES_${PN}-relay = "${sbindir}/pppoe-relay" +FILES_${PN}-sniff = "${sbindir}/pppoe-sniff" + +pkg_postinst_${PN} () { if [ x"$D" != "x" ]; then exit 1 fi chmod 4755 ${sbindir}/pppoe } -CONFFILES_${PN} = "${sysconfdir}/ppp/pppoe-server-options \ - ${sysconfdir}/ppp/pppoe.conf \ +CONFFILES_${PN} = "${sysconfdir}/ppp/pppoe.conf \ ${sysconfdir}/ppp/firewall-standalone \ ${sysconfdir}/ppp/firewall-masq" +CONFFILES_${PN}-server = "${sysconfdir}/ppp/pppoe-server-options \ + ${sysconfdir}/default/pppoe-server" + +INITSCRIPT_PACKAGES = "${PN}-server" +INITSCRIPT_NAME_${PN}-server = "pppoe-server" +INITSCRIPT_PARAMS_${PN}-server = "defaults 92 08" + |