1 |
commit: cfd051f0b723df4b055787c2176442241b689d38 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 2 15:03:34 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 2 15:03:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cfd051f0 |
7 |
|
8 |
net-misc/gmid: drop 9999, requires non existent dep |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
net-misc/gmid/gmid-9999.ebuild | 126 ----------------------------------------- |
14 |
1 file changed, 126 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/gmid/gmid-9999.ebuild b/net-misc/gmid/gmid-9999.ebuild |
17 |
deleted file mode 100644 |
18 |
index 1b951a81f..000000000 |
19 |
--- a/net-misc/gmid/gmid-9999.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,126 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=8 |
26 |
- |
27 |
-SSL_DAYS=36500 |
28 |
-SSL_CERT_MANDATORY=1 |
29 |
-VERIFY_SIG_METHOD="signify" |
30 |
-inherit ssl-cert systemd toolchain-funcs verify-sig |
31 |
- |
32 |
-DESCRIPTION="Simple and secure Gemini server" |
33 |
-HOMEPAGE="https://gmid.omarpolo.com" |
34 |
- |
35 |
-if [[ ${PV} == 9999 ]]; then |
36 |
- EGIT_REPO_URI="https://git.omarpolo.com/${PN} https://github.com/omar-polo/${PN}.git" |
37 |
- inherit git-r3 |
38 |
-else |
39 |
- SRC_URI="https://github.com/omar-polo/${PN}/releases/download/${PV}/${P}.tar.gz |
40 |
- verify-sig? ( https://github.com/omar-polo/${PN}/releases/download/${PV}/SHA256.sig -> ${P}.sha.sig )" |
41 |
- KEYWORDS="~amd64 ~x86" |
42 |
-fi |
43 |
- |
44 |
-LICENSE="BSD ISC MIT" |
45 |
-SLOT="0" |
46 |
-IUSE="seccomp test" |
47 |
-RESTRICT="!test? ( test )" |
48 |
- |
49 |
-DEPEND=" |
50 |
- !elibc_Darwin? ( dev-libs/libbsd ) |
51 |
- acct-user/gemini |
52 |
- dev-libs/imsg-compat |
53 |
- dev-libs/libevent:= |
54 |
- dev-libs/libretls:= |
55 |
- dev-libs/openssl:= |
56 |
-" |
57 |
-BDEPEND=" |
58 |
- virtual/pkgconfig |
59 |
- virtual/yacc |
60 |
- verify-sig? ( sec-keys/signify-keys-gmid:$(ver_cut 1-2) ) |
61 |
-" |
62 |
-RDEPEND="${DEPEND}" |
63 |
- |
64 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/signify-keys/${PN}-$(ver_cut 1-2).pub" |
65 |
- |
66 |
-DOCS=( README.md ChangeLog contrib/README ) |
67 |
- |
68 |
-src_unpack() { |
69 |
- if [[ ${PV} == 9999 ]]; then |
70 |
- git-r3_src_unpack |
71 |
- else |
72 |
- if use verify-sig; then |
73 |
- # Too many levels of symbolic links |
74 |
- cp "${DISTDIR}"/${P}.{sha.sig,tar.gz} "${WORKDIR}" || die |
75 |
- cd "${WORKDIR}" || die |
76 |
- verify-sig_verify_signed_checksums \ |
77 |
- ${P}.sha.sig sha256 ${P}.tar.gz |
78 |
- fi |
79 |
- default |
80 |
- fi |
81 |
-} |
82 |
- |
83 |
-src_prepare() { |
84 |
- default |
85 |
- |
86 |
- sed \ |
87 |
- -e "s:/usr/local/bin/gmid:/usr/bin/gmid:" \ |
88 |
- -e "s:/etc/gmid.conf:/etc/gmid/gmid.conf:" \ |
89 |
- -i contrib/gmid.service || die |
90 |
-} |
91 |
- |
92 |
-src_configure() { |
93 |
- local conf_args |
94 |
- tc-export CC |
95 |
- |
96 |
- # note: not an autoconf configure script |
97 |
- conf_args=( |
98 |
- PREFIX="${EPREFIX}"/usr/share |
99 |
- BINDIR="${EPREFIX}"/usr/bin |
100 |
- $(use_enable seccomp sandbox) |
101 |
- ) |
102 |
- |
103 |
- ./configure "${conf_args[@]}" || die |
104 |
- |
105 |
- if use seccomp && has usersandbox ${FEATURES} ; then |
106 |
- export SKIP_RUNTIME_TESTS=1 |
107 |
- fi |
108 |
-} |
109 |
- |
110 |
-src_compile() { |
111 |
- emake gmid |
112 |
- if use test ; then |
113 |
- emake -C regress gg data puny-test fcgi-test |
114 |
- fi |
115 |
-} |
116 |
- |
117 |
-src_test() { |
118 |
- emake regress |
119 |
-} |
120 |
- |
121 |
-src_install() { |
122 |
- default |
123 |
- |
124 |
- insinto /etc/gmid |
125 |
- doins "${FILESDIR}"/gmid.conf |
126 |
- |
127 |
- insinto /usr/share/vim/vimfiles |
128 |
- doins -r contrib/vim/* |
129 |
- |
130 |
- systemd_dounit contrib/gmid.service |
131 |
- newinitd "${FILESDIR}"/gmid.initd gmid |
132 |
- newconfd "${FILESDIR}"/gmid.confd gmid |
133 |
- |
134 |
- keepdir /var/gemini/localhost |
135 |
-} |
136 |
- |
137 |
-pkg_postinst() { |
138 |
- if [[ ! -f "${EROOT}"/etc/ssl/${PN}/${PN}.key ]]; then |
139 |
- install_cert /etc/ssl/${PN}/${PN} |
140 |
- chown gemini:gemini "${EROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem} |
141 |
- fi |
142 |
- |
143 |
- einfo "This gemini server can be run as a user with zero configuration.\n" |
144 |
- einfo "In order to use it with the init service you will need to generate a" |
145 |
- einfo "self-signed TLS certificate and a key and set up the configuration" |
146 |
- einfo "file (see man 1 gmid for details)." |
147 |
-} |