1 |
commit: f7355478afc4acfcf55febbf66d346ffbebf2e38 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 19:00:37 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 19:08:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7355478 |
7 |
|
8 |
www-servers/gatling: Migrate to acct-user/acct-group packages |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706812 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.0, Repoman-2.3.23 |
13 |
|
14 |
acct-group/gatling/gatling-0.ebuild | 8 ++++ |
15 |
acct-group/gatling/metadata.xml | 8 ++++ |
16 |
acct-user/gatling/gatling-0.ebuild | 12 ++++++ |
17 |
acct-user/gatling/metadata.xml | 8 ++++ |
18 |
www-servers/gatling/gatling-0.16-r1.ebuild | 63 ++++++++++++++++++++++++++++++ |
19 |
5 files changed, 99 insertions(+) |
20 |
|
21 |
diff --git a/acct-group/gatling/gatling-0.ebuild b/acct-group/gatling/gatling-0.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..b4d3a3313de |
24 |
--- /dev/null |
25 |
+++ b/acct-group/gatling/gatling-0.ebuild |
26 |
@@ -0,0 +1,8 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+inherit acct-group |
33 |
+ |
34 |
+ACCT_GROUP_ID=500 # matches acct-user/gatling |
35 |
|
36 |
diff --git a/acct-group/gatling/metadata.xml b/acct-group/gatling/metadata.xml |
37 |
new file mode 100644 |
38 |
index 00000000000..ab886b7f038 |
39 |
--- /dev/null |
40 |
+++ b/acct-group/gatling/metadata.xml |
41 |
@@ -0,0 +1,8 @@ |
42 |
+<?xml version="1.0" encoding="UTF-8"?> |
43 |
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'> |
44 |
+<pkgmetadata> |
45 |
+ <maintainer type="person"> |
46 |
+ <email>sping@g.o</email> |
47 |
+ <name>Sebastian Pipping</name> |
48 |
+ </maintainer> |
49 |
+</pkgmetadata> |
50 |
|
51 |
diff --git a/acct-user/gatling/gatling-0.ebuild b/acct-user/gatling/gatling-0.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000000..d32f48ebb8f |
54 |
--- /dev/null |
55 |
+++ b/acct-user/gatling/gatling-0.ebuild |
56 |
@@ -0,0 +1,12 @@ |
57 |
+# Copyright 1999-2020 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+inherit acct-user |
63 |
+ |
64 |
+ACCT_USER_GROUPS=( gatling ) |
65 |
+ACCT_USER_HOME=/var/www/localhost |
66 |
+ACCT_USER_ID=500 # matches acct-group/gatling |
67 |
+ |
68 |
+acct-user_add_deps |
69 |
|
70 |
diff --git a/acct-user/gatling/metadata.xml b/acct-user/gatling/metadata.xml |
71 |
new file mode 100644 |
72 |
index 00000000000..ab886b7f038 |
73 |
--- /dev/null |
74 |
+++ b/acct-user/gatling/metadata.xml |
75 |
@@ -0,0 +1,8 @@ |
76 |
+<?xml version="1.0" encoding="UTF-8"?> |
77 |
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'> |
78 |
+<pkgmetadata> |
79 |
+ <maintainer type="person"> |
80 |
+ <email>sping@g.o</email> |
81 |
+ <name>Sebastian Pipping</name> |
82 |
+ </maintainer> |
83 |
+</pkgmetadata> |
84 |
|
85 |
diff --git a/www-servers/gatling/gatling-0.16-r1.ebuild b/www-servers/gatling/gatling-0.16-r1.ebuild |
86 |
new file mode 100644 |
87 |
index 00000000000..6616e0b4eca |
88 |
--- /dev/null |
89 |
+++ b/www-servers/gatling/gatling-0.16-r1.ebuild |
90 |
@@ -0,0 +1,63 @@ |
91 |
+# Copyright 1999-2020 Gentoo Authors |
92 |
+# Distributed under the terms of the GNU General Public License v2 |
93 |
+ |
94 |
+EAPI="7" |
95 |
+ |
96 |
+inherit eutils toolchain-funcs |
97 |
+ |
98 |
+DESCRIPTION="High performance web server" |
99 |
+HOMEPAGE="https://www.fefe.de/gatling/" |
100 |
+SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz" |
101 |
+LICENSE="GPL-2" |
102 |
+SLOT="0" |
103 |
+KEYWORDS="~amd64 ~x86" |
104 |
+ |
105 |
+IUSE="libressl ssl diet" |
106 |
+REQUIRED_USE="ssl? ( !diet )" |
107 |
+ |
108 |
+DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] |
109 |
+ diet? ( dev-libs/dietlibc ) |
110 |
+ ssl? ( |
111 |
+ !libressl? ( dev-libs/openssl:0 ) |
112 |
+ libressl? ( dev-libs/libressl ) |
113 |
+ )" |
114 |
+RDEPEND="${DEPEND} |
115 |
+ acct-group/gatling |
116 |
+ acct-user/gatling |
117 |
+ " |
118 |
+ |
119 |
+PATCHES=( |
120 |
+ "${FILESDIR}/${PN}-0.13-compile.patch" |
121 |
+ "${FILESDIR}/${PN}-0.15-ar.patch" |
122 |
+) |
123 |
+ |
124 |
+src_prepare() { |
125 |
+ default |
126 |
+ rm Makefile # leaves us with GNUmakefile |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ local DIET= |
131 |
+ use diet && DIET='/usr/bin/diet' |
132 |
+ |
133 |
+ local targets='gatling' |
134 |
+ use ssl && targets+=' tlsgatling' |
135 |
+ |
136 |
+ emake DIET="${DIET}" CC="$(tc-getCC)" \ |
137 |
+ CFLAGS="${CFLAGS} -I${ROOT}/usr/include/libowfat" \ |
138 |
+ LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ doman gatling.1 |
143 |
+ |
144 |
+ newconfd "${FILESDIR}/gatling.confd" gatling |
145 |
+ newinitd "${FILESDIR}/gatling.initd-3" gatling |
146 |
+ dodoc README.{ftp,http} |
147 |
+ |
148 |
+ dobin gatling |
149 |
+ use ssl && { |
150 |
+ dodoc README.tls |
151 |
+ dobin tlsgatling |
152 |
+ } |
153 |
+} |