/[gentoo-x86]/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild
Gentoo

Contents of /net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 8 06:31:38 2014 UTC (5 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Inherit the user eclass for enewuser/etc...

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild,v 1.1 2012/12/19 21:03:38 vapier Exp $
4
5 EAPI="4"
6
7 inherit autotools vcs-snapshot eutils user
8
9 DESCRIPTION="Update local time over HTTPS"
10 HOMEPAGE="https://github.com/ioerror/tlsdate"
11 SRC_URI="https://github.com/ioerror/tlsdate/tarball/${P} -> ${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~x86"
16 IUSE="static-libs"
17
18 DEPEND="dev-libs/openssl"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 epatch "${FILESDIR}"/${P}-compiler-flags.patch
23 epatch "${FILESDIR}"/${P}-configure-user-group.patch
24 eautoreconf
25 }
26
27 src_configure() {
28 econf \
29 --disable-hardened-checks \
30 --with-unpriv-user=tlsdate \
31 --with-unpriv-group=tlsdate
32 }
33
34 src_install() {
35 default
36 rm -r "${ED}"/etc || die #446426
37 newinitd "${FILESDIR}"/tlsdated.rc tlsdated
38 newconfd "${FILESDIR}"/tlsdated.confd tlsdated
39 newinitd "${FILESDIR}"/tlsdate.rc tlsdate
40 newconfd "${FILESDIR}"/tlsdate.confd tlsdate
41 use static-libs || \
42 find "${ED}"/usr '(' -name '*.la' -o -name '*.a' ')' -delete
43 }
44
45 pkg_preinst() {
46 enewgroup tlsdate 124
47 enewuser tlsdate 124 -1 /dev/null tlsdate
48 }

  ViewVC Help
Powered by ViewVC 1.1.20