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

Contents of /net-misc/tlsdate/tlsdate-0.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jan 8 06:31:38 2014 UTC (4 years, 7 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.6.ebuild,v 1.2 2013/03/18 17:16:18 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="dbus static-libs"
17
18 DEPEND="dev-libs/openssl
19 dbus? ( sys-apps/dbus )"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 eautoreconf
24 }
25
26 src_configure() {
27 econf \
28 $(use_enable dbus) \
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