1 |
commit: 273933f937c0623d17a0781a9e0e472b0f5f7783 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 27 20:23:44 2022 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 27 20:28:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=273933f9 |
7 |
|
8 |
net-misc/htpdate: Use original htpdate upstream again |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
net-misc/htpdate/htpdate-9999.ebuild | 27 ++++++++++++--------------- |
13 |
1 file changed, 12 insertions(+), 15 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/htpdate/htpdate-9999.ebuild b/net-misc/htpdate/htpdate-9999.ebuild |
16 |
index 033790209271..eedff8c28a70 100644 |
17 |
--- a/net-misc/htpdate/htpdate-9999.ebuild |
18 |
+++ b/net-misc/htpdate/htpdate-9999.ebuild |
19 |
@@ -1,17 +1,17 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
-inherit flag-o-matic readme.gentoo-r1 toolchain-funcs |
27 |
+inherit readme.gentoo-r1 toolchain-funcs |
28 |
|
29 |
DESCRIPTION="Synchronize local workstation with time offered by remote webservers" |
30 |
-HOMEPAGE="https://github.com/angeloc/htpdate" |
31 |
+HOMEPAGE="https://www.vervest.org/htp/" |
32 |
if [[ "${PV}" == *9999 ]] ; then |
33 |
inherit git-r3 |
34 |
- EGIT_REPO_URI="https://github.com/angeloc/htpdate.git" |
35 |
+ EGIT_REPO_URI="https://github.com/twekkel/htpdate" |
36 |
else |
37 |
- SRC_URI="https://github.com/angeloc/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ SRC_URI="https://github.com/twekkel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux" |
40 |
fi |
41 |
IUSE="+ssl" |
42 |
@@ -20,12 +20,14 @@ SLOT="0" |
43 |
|
44 |
DEPEND="ssl? ( dev-libs/openssl:0= )" |
45 |
RDEPEND="${DEPEND}" |
46 |
-BDEPEND="ssl? ( virtual/pkgconfig )" |
47 |
+ |
48 |
+# Test suite tries to connect to the Internet |
49 |
+RESTRICT="test" |
50 |
|
51 |
DOC_CONTENTS="If you would like to run htpdate as a daemon, set |
52 |
appropriate http servers in /etc/conf.d/htpdate!" |
53 |
|
54 |
-PATCHES=( "${FILESDIR}/${PN}-1.2.6-ldlibs.patch" ) |
55 |
+PATCHES=( ) |
56 |
|
57 |
src_prepare() { |
58 |
default |
59 |
@@ -37,17 +39,12 @@ src_prepare() { |
60 |
} |
61 |
|
62 |
src_compile() { |
63 |
- if use ssl ; then |
64 |
- append-cflags -DENABLE_HTTPS |
65 |
- export PKG_CONFIG="$(tc-getPKG_CONFIG)" |
66 |
- fi |
67 |
- |
68 |
- emake CFLAGS="-Wall ${CFLAGS}" CC="$(tc-getCC)" \ |
69 |
- $(usex ssl 'ENABLE_HTTPS=1' '') |
70 |
+ emake CFLAGS="-Wall ${CFLAGS} ${LDFLAGS}" CC="$(tc-getCC)" \ |
71 |
+ $(usex ssl "https" '') |
72 |
} |
73 |
|
74 |
src_install() { |
75 |
- emake DESTDIR="${D}" bindir='$(prefix)/sbin' install |
76 |
+ emake DESTDIR="${D}" STRIP="/bin/true" bindir='$(prefix)/sbin' install |
77 |
dodoc README.md Changelog |
78 |
|
79 |
newconfd "${FILESDIR}"/htpdate.conf htpdate |