Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-ftp/atftp: atftp-0.7-r3.ebuild ChangeLog
Date: Sun, 01 Dec 2013 22:10:12
Message-Id: 20131201221008.755242004E@flycatcher.gentoo.org
1 pacho 13/12/01 22:10:08
2
3 Modified: ChangeLog
4 Added: atftp-0.7-r3.ebuild
5 Log:
6 Add unit file, bug #492698 by Christian Strahl
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.31 net-ftp/atftp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/atftp/ChangeLog?rev=1.31&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/atftp/ChangeLog?rev=1.31&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/atftp/ChangeLog?r1=1.30&r2=1.31
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-ftp/atftp/ChangeLog,v
20 retrieving revision 1.30
21 retrieving revision 1.31
22 diff -u -r1.30 -r1.31
23 --- ChangeLog 13 May 2012 11:13:32 -0000 1.30
24 +++ ChangeLog 1 Dec 2013 22:10:08 -0000 1.31
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-ftp/atftp
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/ChangeLog,v 1.30 2012/05/13 11:13:32 swift Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/ChangeLog,v 1.31 2013/12/01 22:10:08 pacho Exp $
31 +
32 +*atftp-0.7-r3 (01 Dec 2013)
33 +
34 + 01 Dec 2013; Pacho Ramos <pacho@g.o> +atftp-0.7-r3.ebuild,
35 + +files/atftp.service, +files/atftp.service.conf:
36 + Add unit file, bug #492698 by Christian Strahl
37
38 13 May 2012; <swift@g.o> atftp-0.7-r1.ebuild, atftp-0.7-r2.ebuild:
39 SELinux policy module for TFTP is provided by selinux-tftp
40
41
42
43 1.1 net-ftp/atftp/atftp-0.7-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/atftp/atftp-0.7-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/atftp/atftp-0.7-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: atftp-0.7-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/atftp-0.7-r3.ebuild,v 1.1 2013/12/01 22:10:08 pacho Exp $
53
54 EAPI=5
55 inherit eutils flag-o-matic systemd
56
57 DEBIAN_PV="11"
58 DEBIAN_A="${PN}_${PV}-${DEBIAN_PV}.diff.gz"
59
60 DESCRIPTION="Advanced TFTP implementation client/server"
61 HOMEPAGE="ftp://ftp.mamalinux.com/pub/atftp/"
62 SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/${P}.tar.gz
63 mirror://debian/pool/main/a/${PN}/${DEBIAN_A}"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~s390 ~sparc ~x86"
68 IUSE="selinux tcpd readline pcre"
69
70 DEPEND="tcpd? ( sys-apps/tcp-wrappers )
71 selinux? ( sec-policy/selinux-tftp )
72 readline? ( sys-libs/readline )
73 pcre? ( dev-libs/libpcre )"
74 RDEPEND="${DEPEND}
75 !net-ftp/netkit-tftp
76 !net-ftp/tftp-hpa"
77
78 src_prepare() {
79 epatch "${DISTDIR}"/${DEBIAN_A}
80 epatch "${FILESDIR}"/${P}-pcre.patch
81 epatch "${FILESDIR}"/${P}-password.patch
82 epatch "${FILESDIR}"/${P}-tests.patch
83 epatch "${FILESDIR}"/${P}-glibc24.patch
84 epatch "${FILESDIR}"/${P}-blockno.patch
85 epatch "${FILESDIR}"/${P}-spaced_filename.patch
86 epatch "${FILESDIR}"/${P}-illreply.patch
87 # remove upstream's broken CFLAGS
88 sed -i.orig -e \
89 '/^CFLAGS="-g -Wall -D_REENTRANT"/s,".*","",g' \
90 "${S}"/configure
91 }
92
93 src_configure() {
94 append-flags -D_REENTRANT -DRATE_CONTROL
95 econf \
96 $(use_enable tcpd libwrap) \
97 $(use_enable readline libreadline) \
98 $(use_enable pcre libpcre) \
99 --enable-mtftp
100 }
101
102 src_compile() {
103 emake CFLAGS="${CFLAGS}"
104 }
105
106 src_install() {
107 emake install DESTDIR="${D}"
108
109 newinitd "${FILESDIR}"/atftp.init atftp
110 newconfd "${FILESDIR}"/atftp.confd atftp
111
112 systemd_dounit "${FILESDIR}"/atftp.service
113 systemd_install_serviced "${FILESDIR}"/atftp.service.conf
114
115 dodoc README* BUGS FAQ Changelog INSTALL TODO
116 dodoc "${S}"/docs/*
117
118 docinto test
119 cd "${S}"/test
120 dodoc load.sh mtftp.conf pcre_pattern.txt test.sh test_suite.txt
121 }