net-misc/openbgpd: systemd unit

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2020-03-21 18:44:59 +01:00
parent 98b8e02148
commit 5c2d4c79e5
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
3 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=OpenBGPD Routing Daemon
Documentation=man:bgpd.conf(5) man:bgpctl(8) man:bgpd(8)
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/sbin/bgpd -f /etc/bgpd.conf
[Install]
WantedBy=multi-user.target

View file

@ -3,7 +3,7 @@
EAPI=7
inherit autotools
inherit systemd
MY_PV="${PV/_p/p}"
#MY_PN="openbgpd-portable"
@ -43,6 +43,7 @@ src_install() {
newinitd "${FILESDIR}/${PN}-init.d" bgpd
newconfd "${FILESDIR}/${PN}-conf.d" bgpd
systemd_newunit "${FILESDIR}/${PN}.service" bgpd.service
}
pkg_postinst() {

View file

@ -3,7 +3,7 @@
EAPI=7
inherit autotools git-r3
inherit autotools git-r3 systemd
MY_PV="master"
MY_PN="openbgpd-portable"
@ -62,6 +62,7 @@ src_install() {
newinitd "${FILESDIR}/${PN}-init.d" bgpd
newconfd "${FILESDIR}/${PN}-conf.d" bgpd
systemd_newunit "${FILESDIR}/${PN}.service" bgpd.service
}
pkg_postinst() {