1 |
commit: d846823d08cafd29d8e714eeedc2ccd807035bb2 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 7 20:01:21 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 7 20:02:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d846823d |
7 |
|
8 |
www-servers/xsp: migrate to GLEP 81 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781551 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
www-servers/xsp/xsp-3.8_p2014120900-r1.ebuild | 95 +++++++++++++++++++++++++++ |
15 |
www-servers/xsp/xsp-4.7.1-r1.ebuild | 91 +++++++++++++++++++++++++ |
16 |
2 files changed, 186 insertions(+) |
17 |
|
18 |
diff --git a/www-servers/xsp/xsp-3.8_p2014120900-r1.ebuild b/www-servers/xsp/xsp-3.8_p2014120900-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..c1ec007657b |
21 |
--- /dev/null |
22 |
+++ b/www-servers/xsp/xsp-3.8_p2014120900-r1.ebuild |
23 |
@@ -0,0 +1,95 @@ |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+# TODO: We can probably yank the USE_DOTNET/dotnet.eclass stuff |
30 |
+# but let's be conservative for now |
31 |
+USE_DOTNET="net35 net40 net45" |
32 |
+inherit autotools dotnet systemd |
33 |
+ |
34 |
+EGIT_COMMIT="e272a2c006211b6b03be2ef5bbb9e3f8fefd0768" |
35 |
+DESCRIPTION="XSP is a small web server that can host ASP.NET pages" |
36 |
+HOMEPAGE="http://www.mono-project.com/ASP.NET" |
37 |
+SRC_URI="https://github.com/mono/xsp/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
38 |
+S="${WORKDIR}/xsp-${EGIT_COMMIT}" |
39 |
+ |
40 |
+LICENSE="MIT" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~ppc ~x86" |
43 |
+IUSE="developer doc test" |
44 |
+RESTRICT="!test? ( test )" |
45 |
+ |
46 |
+DEPEND="dev-db/sqlite:3" |
47 |
+RDEPEND=" |
48 |
+ ${DEPEND} |
49 |
+ acct-group/aspnet |
50 |
+ acct-user/aspnet |
51 |
+" |
52 |
+ |
53 |
+PATCHES=( |
54 |
+ "${FILESDIR}/aclocal-fix.patch" |
55 |
+) |
56 |
+ |
57 |
+METAFILETOBUILD=xsp.sln |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ eaclocal -I build/m4/shamrock -I build/m4/shave ${ACLOCAL_FLAGS} |
63 |
+ if test -z "${NO_LIBTOOLIZE}" ; then |
64 |
+ _elibtoolize --force --copy |
65 |
+ fi |
66 |
+ |
67 |
+ eautoconf |
68 |
+ eautomake --gnu --add-missing --force --copy |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local myeconfargs=( |
73 |
+ "--enable-maintainer-mode" |
74 |
+ ) |
75 |
+ |
76 |
+ use test && myeconfargs+=( "--with_unit_tests" ) |
77 |
+ use doc || myeconfargs+=( "--disable-docs" ) |
78 |
+ |
79 |
+ econf "${myeconfargs[@]}" |
80 |
+} |
81 |
+ |
82 |
+#src_compile() { |
83 |
+# exbuild xsp.sln |
84 |
+ |
85 |
+# if use developer ; then |
86 |
+# exbuild /p:DebugSymbols=True ${METAFILETOBUILD} |
87 |
+# else |
88 |
+# exbuild /p:DebugSymbols=False ${METAFILETOBUILD} |
89 |
+# fi |
90 |
+#} |
91 |
+ |
92 |
+src_install() { |
93 |
+ default |
94 |
+ |
95 |
+ local PATCHDIR="${FILESDIR}/2.2/" |
96 |
+ |
97 |
+ newinitd "${PATCHDIR}"/xsp.initd xsp |
98 |
+ newinitd "${PATCHDIR}"/mod-mono-server-r1.initd mod-mono-server |
99 |
+ newconfd "${PATCHDIR}"/xsp.confd xsp |
100 |
+ newconfd "${PATCHDIR}"/mod-mono-server.confd mod-mono-server |
101 |
+ |
102 |
+ insinto /etc/xsp4 |
103 |
+ doins "${FILESDIR}"/systemd/mono.webapp |
104 |
+ insinto /etc/xsp4/conf.d |
105 |
+ |
106 |
+ # mono-xsp4.service was original name from |
107 |
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770458;filename=mono-xsp4.service;att=1;msg=5 |
108 |
+ # I think that using the same commands as in debian |
109 |
+ # systemctl start mono-xsp4.service |
110 |
+ # systemctl start mono-xsp4 |
111 |
+ # is better than to have shorter command |
112 |
+ # systemctl start xsp |
113 |
+ # |
114 |
+ # insinto /usr/lib/systemd/system |
115 |
+ systemd_dounit "${FILESDIR}"/systemd/mono-xsp4.service |
116 |
+ |
117 |
+ keepdir /var/run/aspnet |
118 |
+} |
119 |
|
120 |
diff --git a/www-servers/xsp/xsp-4.7.1-r1.ebuild b/www-servers/xsp/xsp-4.7.1-r1.ebuild |
121 |
new file mode 100644 |
122 |
index 00000000000..a7a1cdb9550 |
123 |
--- /dev/null |
124 |
+++ b/www-servers/xsp/xsp-4.7.1-r1.ebuild |
125 |
@@ -0,0 +1,91 @@ |
126 |
+# Copyright 1999-2021 Gentoo Authors |
127 |
+# Distributed under the terms of the GNU General Public License v2 |
128 |
+ |
129 |
+EAPI=7 |
130 |
+ |
131 |
+USE_DOTNET="net35 net40 net45" |
132 |
+inherit autotools dotnet systemd |
133 |
+ |
134 |
+DESCRIPTION="XSP is a small web server that can host ASP.NET pages" |
135 |
+HOMEPAGE="http://www.mono-project.com/ASP.NET" |
136 |
+SRC_URI="https://github.com/mono/xsp/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
137 |
+ |
138 |
+LICENSE="MIT" |
139 |
+SLOT="0" |
140 |
+KEYWORDS="~amd64 ~ppc ~x86" |
141 |
+IUSE="developer doc test" |
142 |
+RESTRICT="!test? ( test )" |
143 |
+ |
144 |
+DEPEND="dev-db/sqlite:3" |
145 |
+RDEPEND=" |
146 |
+ ${DEPEND} |
147 |
+ acct-group/aspnet |
148 |
+ acct-user/aspnet |
149 |
+" |
150 |
+ |
151 |
+PATCHES=( |
152 |
+ "${FILESDIR}/aclocal-fix.patch" |
153 |
+) |
154 |
+ |
155 |
+METAFILETOBUILD=xsp.sln |
156 |
+ |
157 |
+src_prepare() { |
158 |
+ default |
159 |
+ |
160 |
+ eaclocal -I build/m4/shamrock -I build/m4/shave ${ACLOCAL_FLAGS} |
161 |
+ if test -z "${NO_LIBTOOLIZE}" ; then |
162 |
+ _elibtoolize --force --copy |
163 |
+ fi |
164 |
+ |
165 |
+ eautoconf |
166 |
+ eautomake --gnu --add-missing --force --copy |
167 |
+} |
168 |
+ |
169 |
+src_configure() { |
170 |
+ local myeconfargs=( |
171 |
+ "--enable-maintainer-mode" |
172 |
+ ) |
173 |
+ |
174 |
+ use test && myeconfargs+=( "--with_unit_tests" ) |
175 |
+ use doc || myeconfargs+=( "--disable-docs" ) |
176 |
+ |
177 |
+ econf "${myeconfargs[@]}" |
178 |
+} |
179 |
+ |
180 |
+#src_compile() { |
181 |
+# exbuild xsp.sln |
182 |
+# |
183 |
+# if use developer ; then |
184 |
+# exbuild /p:DebugSymbols=True ${METAFILETOBUILD} |
185 |
+# else |
186 |
+# exbuild /p:DebugSymbols=False ${METAFILETOBUILD} |
187 |
+# fi |
188 |
+#} |
189 |
+ |
190 |
+src_install() { |
191 |
+ default |
192 |
+ |
193 |
+ local PATCHDIR="${FILESDIR}/2.2/" |
194 |
+ |
195 |
+ newinitd "${PATCHDIR}"/xsp.initd xsp |
196 |
+ newinitd "${PATCHDIR}"/mod-mono-server-r1.initd mod-mono-server |
197 |
+ newconfd "${PATCHDIR}"/xsp.confd xsp |
198 |
+ newconfd "${PATCHDIR}"/mod-mono-server.confd mod-mono-server |
199 |
+ |
200 |
+ insinto /etc/xsp4 |
201 |
+ doins "${FILESDIR}"/systemd/mono.webapp |
202 |
+ insinto /etc/xsp4/conf.d |
203 |
+ |
204 |
+ # mono-xsp4.service was original name from |
205 |
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770458;filename=mono-xsp4.service;att=1;msg=5 |
206 |
+ # I think that using the same commands as in debian |
207 |
+ # systemctl start mono-xsp4.service |
208 |
+ # systemctl start mono-xsp4 |
209 |
+ # is better than to have shorter command |
210 |
+ # systemctl start xsp |
211 |
+ # |
212 |
+ # insinto /usr/lib/systemd/system |
213 |
+ systemd_dounit "${FILESDIR}"/systemd/mono-xsp4.service |
214 |
+ |
215 |
+ keepdir /var/run/aspnet |
216 |
+} |