diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-09-14 13:13:23 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-09-14 13:13:23 +0000 |
commit | 95e5625249b515b14b4b827921ae84cf04a3c510 (patch) | |
tree | c9e9b27f73f8ecdeda7214331a558dce7fc3d07e /net-ftp | |
parent | revbump -> EAPI 5 (diff) | |
download | gentoo-2-95e5625249b515b14b4b827921ae84cf04a3c510.tar.gz gentoo-2-95e5625249b515b14b4b827921ae84cf04a3c510.tar.bz2 gentoo-2-95e5625249b515b14b4b827921ae84cf04a3c510.zip |
Install unit file (#482712)
(Portage version: 2.2.4/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/tftp-hpa/ChangeLog | 10 | ||||
-rw-r--r-- | net-ftp/tftp-hpa/files/tftp.service | 6 | ||||
-rw-r--r-- | net-ftp/tftp-hpa/files/tftp.socket | 8 | ||||
-rw-r--r-- | net-ftp/tftp-hpa/tftp-hpa-5.2-r1.ebuild | 53 |
4 files changed, 75 insertions, 2 deletions
diff --git a/net-ftp/tftp-hpa/ChangeLog b/net-ftp/tftp-hpa/ChangeLog index fb2584d4509a..f5b19211f629 100644 --- a/net-ftp/tftp-hpa/ChangeLog +++ b/net-ftp/tftp-hpa/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-ftp/tftp-hpa -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/ChangeLog,v 1.65 2012/09/15 18:50:46 armin76 Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/ChangeLog,v 1.66 2013/09/14 13:13:23 pacho Exp $ + +*tftp-hpa-5.2-r1 (14 Sep 2013) + + 14 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/tftp.service, + +files/tftp.socket, +tftp-hpa-5.2-r1.ebuild: + Install unit file (#482712) 15 Sep 2012; Raúl Porcel <armin76@gentoo.org> tftp-hpa-5.2.ebuild: alpha/ia64/s390/sh/sparc/x86 stable wrt #429164 diff --git a/net-ftp/tftp-hpa/files/tftp.service b/net-ftp/tftp-hpa/files/tftp.service new file mode 100644 index 000000000000..f43937875409 --- /dev/null +++ b/net-ftp/tftp-hpa/files/tftp.service @@ -0,0 +1,6 @@ +[Unit] +Description=Tftp Server + +[Service] +ExecStart=/usr/sbin/in.tftpd -R 4096:32767 -s /tftproot +StandardInput=socket diff --git a/net-ftp/tftp-hpa/files/tftp.socket b/net-ftp/tftp-hpa/files/tftp.socket new file mode 100644 index 000000000000..8764c1de349c --- /dev/null +++ b/net-ftp/tftp-hpa/files/tftp.socket @@ -0,0 +1,8 @@ +[Unit] +Description=Tftp Server Activation Socket + +[Socket] +ListenDatagram=69 + +[Install] +WantedBy=sockets.target diff --git a/net-ftp/tftp-hpa/tftp-hpa-5.2-r1.ebuild b/net-ftp/tftp-hpa/tftp-hpa-5.2-r1.ebuild new file mode 100644 index 000000000000..30661b19bb2a --- /dev/null +++ b/net-ftp/tftp-hpa/tftp-hpa-5.2-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/tftp-hpa-5.2-r1.ebuild,v 1.1 2013/09/14 13:13:23 pacho Exp $ + +EAPI="4" + +inherit systemd toolchain-funcs + +DESCRIPTION="port of the OpenBSD TFTP server" +HOMEPAGE="http://www.kernel.org/pub/software/network/tftp/" +SRC_URI="mirror://kernel/software/network/tftp/${PN}/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-macos" +IUSE="ipv6 readline selinux tcpd" + +RDEPEND="selinux? ( sec-policy/selinux-tftp ) + readline? ( sys-libs/readline ) + tcpd? ( sys-apps/tcp-wrappers ) + !net-ftp/atftp + !net-ftp/netkit-tftp" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +src_prepare() { + sed -i "/^AR/s:ar:$(tc-getAR):" MCONFIG.in || die +} + +src_configure() { + econf \ + $(use_with ipv6) \ + $(use_with tcpd tcpwrappers) \ + $(use_with readline) +} + +src_install() { + emake INSTALLROOT="${D}" install + dodoc README* CHANGES tftpd/sample.rules + + # iputils installs this + rm "${ED}"/usr/share/man/man8/tftpd.8 || die + + newconfd "${FILESDIR}"/in.tftpd.confd-0.44 in.tftpd + newinitd "${FILESDIR}"/in.tftpd.rc6 in.tftpd + + dodir /tftproot + systemd_dounit "${FILESDIR}"/tftp.service + systemd_dounit "${FILESDIR}"/tftp.socket + + insinto /etc/xinetd.d + newins "${FILESDIR}"/tftp.xinetd tftp +} |