diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2014-12-04 08:27:53 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2014-12-04 08:27:53 +0000 |
commit | e89951e6728dd38f6ad2e1afa74b80912bb085b2 (patch) | |
tree | 15643397c5b064f75b57c31afc62bb76c86bb27c /net-dialup | |
parent | Stable for ppc64, wrt bug #530958 (diff) | |
download | gentoo-2-e89951e6728dd38f6ad2e1afa74b80912bb085b2.tar.gz gentoo-2-e89951e6728dd38f6ad2e1afa74b80912bb085b2.tar.bz2 gentoo-2-e89951e6728dd38f6ad2e1afa74b80912bb085b2.zip |
Revision bump: EAPI 5, epatch_user, replace einstall with default src_install phase function call, wrt bug #521580, respect compiler, replace /var/run with /run
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/dwun/ChangeLog | 12 | ||||
-rw-r--r-- | net-dialup/dwun/dwun-0.96e-r3.ebuild | 46 | ||||
-rw-r--r-- | net-dialup/dwun/files/dwun | 10 |
3 files changed, 61 insertions, 7 deletions
diff --git a/net-dialup/dwun/ChangeLog b/net-dialup/dwun/ChangeLog index 8c56e1cc9b47..807987eda600 100644 --- a/net-dialup/dwun/ChangeLog +++ b/net-dialup/dwun/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-dialup/dwun -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/dwun/ChangeLog,v 1.10 2013/02/02 18:57:47 ulm Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/dwun/ChangeLog,v 1.11 2014/12/04 08:27:53 pinkbyte Exp $ + +*dwun-0.96e-r3 (04 Dec 2014) + + 04 Dec 2014; Sergey Popov <pinkbyte@gentoo.org> +dwun-0.96e-r3.ebuild, + files/dwun: + Revision bump: EAPI 5, epatch_user, replace einstall with default src_install + phase function call, wrt bug #521580, respect compiler, replace /var/run with + /run 02 Feb 2013; Ulrich Müller <ulm@gentoo.org> dwun-0.96e-r2.ebuild: Fix LICENSE, MIT (Expat) according to COPYING file, bug 453214. Add GPL-2 for diff --git a/net-dialup/dwun/dwun-0.96e-r3.ebuild b/net-dialup/dwun/dwun-0.96e-r3.ebuild new file mode 100644 index 000000000000..5cc4f81d8053 --- /dev/null +++ b/net-dialup/dwun/dwun-0.96e-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/dwun/dwun-0.96e-r3.ebuild,v 1.1 2014/12/04 08:27:53 pinkbyte Exp $ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Dialer Without a Useful Name (DWUN)" +HOMEPAGE="http://dwun.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="MIT GPL-2" # GPL-2 only for init script +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=( AUTHORS ChangeLog QUICKSTART README TODO UPGRADING ) + +src_prepare() { + sed -i -e "s:TODO QUICKSTART README UPGRADING ChangeLog COPYING AUTHORS::" Makefile.in || die + tc-export CC + + epatch_user +} + +src_configure() { + econf --with-docdir="share/doc/${PF}" +} + +src_install() { + default + + insinto /etc + newins doc/examples/complete-rcfile dwunrc + newins debian/dwunauth dwunauth + newinitd "${FILESDIR}/dwun" dwun +} + +pkg_postinst() { + elog + elog 'Make sure you have "net-dialup/ppp" merged if you intend to use dwun' + elog "to control a standard PPP network link." + elog "See /usr/share/doc/${P}/QUICKSTART for instructions on" + elog "configuring dwun." + elog +} diff --git a/net-dialup/dwun/files/dwun b/net-dialup/dwun/files/dwun index f64db89ce3bc..2f4c4390d6f9 100644 --- a/net-dialup/dwun/files/dwun +++ b/net-dialup/dwun/files/dwun @@ -1,23 +1,23 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/dwun/files/dwun,v 1.3 2004/07/14 23:15:37 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/dwun/files/dwun,v 1.4 2014/12/04 08:27:53 pinkbyte Exp $ depend() { need net } DAEMON=/usr/sbin/dwun -PIDFILE=/var/run/dwun.pid +PIDFILE="/run/${SVCNAME}.pid" start() { - ebegin "Starting dwun" + ebegin "Starting ${SVCNAME}" start-stop-daemon --start --pidfile ${PIDFILE} --startas ${DAEMON} eend $? } stop() { - ebegin "Stopping dwun" + ebegin "Stopping ${SVCNAME}" start-stop-daemon --stop --signal 1 --pidfile ${PIDFILE} eend $? } |