1 |
commit: 8993bcdf6bd7cbfe5e55142f666dc4be52941dd2 |
2 |
Author: Matthew Brewer <tomboy64 <AT> sina <DOT> cn> |
3 |
AuthorDate: Sun Feb 14 14:44:42 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 14 14:52:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8993bcdf |
7 |
|
8 |
net-misc/i2pd: adjust systemd .service to point to /usr/bin/i2pd |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
RepoMan-Options: --ignore-arches |
12 |
|
13 |
net-misc/i2pd/files/i2pd-2.4.0.service | 18 ++++++++++++++++++ |
14 |
.../i2pd/{i2pd-2.4.0.ebuild => i2pd-2.4.0-r1.ebuild} | 2 +- |
15 |
2 files changed, 19 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/net-misc/i2pd/files/i2pd-2.4.0.service b/net-misc/i2pd/files/i2pd-2.4.0.service |
18 |
new file mode 100644 |
19 |
index 0000000..c5acee0 |
20 |
--- /dev/null |
21 |
+++ b/net-misc/i2pd/files/i2pd-2.4.0.service |
22 |
@@ -0,0 +1,18 @@ |
23 |
+[Unit] |
24 |
+Description=C++ daemon for accessing the I2P network |
25 |
+After=network.target |
26 |
+ |
27 |
+[Service] |
28 |
+Type=forking |
29 |
+Restart=on-abnormal |
30 |
+PIDFile=/var/run/i2pd.pid |
31 |
+User=i2pd |
32 |
+Group=i2pd |
33 |
+PermissionsStartOnly=yes |
34 |
+ExecStartPre=/bin/touch /var/run/i2pd.pid /var/log/i2pd.log |
35 |
+ExecStartPre=/bin/chown i2pd:i2pd /run/i2pd.pid /var/log/i2pd.log |
36 |
+ExecStart=/usr/bin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.cfg |
37 |
+ |
38 |
+[Install] |
39 |
+WantedBy=multi-user.target |
40 |
+ |
41 |
|
42 |
diff --git a/net-misc/i2pd/i2pd-2.4.0.ebuild b/net-misc/i2pd/i2pd-2.4.0-r1.ebuild |
43 |
similarity index 97% |
44 |
rename from net-misc/i2pd/i2pd-2.4.0.ebuild |
45 |
rename to net-misc/i2pd/i2pd-2.4.0-r1.ebuild |
46 |
index bf59082..bf6489c 100644 |
47 |
--- a/net-misc/i2pd/i2pd-2.4.0.ebuild |
48 |
+++ b/net-misc/i2pd/i2pd-2.4.0-r1.ebuild |
49 |
@@ -68,7 +68,7 @@ src_install() { |
50 |
dodir /usr/share/i2pd |
51 |
newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
52 |
newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
53 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
54 |
+ systemd_newunit "${FILESDIR}/${PN}-2.4.0.service" "${PN}.service" |
55 |
doenvd "${FILESDIR}/99${PN}" |
56 |
insinto /etc/logrotate.d |
57 |
newins "${FILESDIR}/${PN}.logrotate" "${PN}" |