net-misc/quagga: create directory for PID files during src_install
authorSergey Popov <pinkbyte@gentoo.org>
Tue, 25 Aug 2015 11:02:22 +0000 (14:02 +0300)
committerSergey Popov <pinkbyte@gentoo.org>
Tue, 25 Aug 2015 11:02:22 +0000 (14:02 +0300)
Directory for PID files was not created during src_install, which
makes impossible to use Quagga daemons before first reboot
for systemd users

Reported-by: Olipro <olipro+gentoopub@gmail.com>
Gentoo-Bug: 558194

Package-Manager: portage-2.2.20

net-misc/quagga/quagga-0.99.24.1-r1.ebuild [moved from net-misc/quagga/quagga-0.99.24.1.ebuild with 95% similarity]

similarity index 95%
rename from net-misc/quagga/quagga-0.99.24.1.ebuild
rename to net-misc/quagga/quagga-0.99.24.1-r1.ebuild
index 57e23b3d4c2add7719c24740e3fd4d8e131b2768..c8af9d03a33104fa07000ed85c04f06f22c5ca3d 100644 (file)
@@ -103,6 +103,11 @@ src_install() {
        fowners root:quagga /etc/quagga
        fperms 0770 /etc/quagga
 
+       # Path for PIDs before first reboot should be created here, bug #558194
+       dodir /run/quagga
+       fowners quagga:quagga /run/quagga
+       fperms 0770 /run/quagga
+
        # Install systemd-related stuff, bug #553136
        systemd_dotmpfilesd "${FILESDIR}/systemd/quagga.conf"
        systemd_dounit "${FILESDIR}/systemd/zebra.service"