diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2018-01-20 19:05:13 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-10-30 11:28:43 +0100 |
commit | f3042e074b7763c09bf274d366bbe31f0e55e417 (patch) | |
tree | 6d9418d88a49f6f4a7c8b84a0d1a8a8dd349002e /net-misc/pingu/files | |
parent | net-analyzer/ossec-hids: open source HIDS (new package) (diff) | |
download | gentoo-f3042e074b7763c09bf274d366bbe31f0e55e417.tar.gz gentoo-f3042e074b7763c09bf274d366bbe31f0e55e417.tar.bz2 gentoo-f3042e074b7763c09bf274d366bbe31f0e55e417.zip |
net-misc/pingu: new ebuild
Pingu is a daemon that takes care of policy routing and
fail-over in multi ISP setups.
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10194
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-misc/pingu/files')
-rw-r--r-- | net-misc/pingu/files/pingu-1.5-makefile.patch | 21 | ||||
-rw-r--r-- | net-misc/pingu/files/pingu.confd | 5 | ||||
-rw-r--r-- | net-misc/pingu/files/pingu.initd | 13 | ||||
-rw-r--r-- | net-misc/pingu/files/pingu.service | 11 | ||||
-rw-r--r-- | net-misc/pingu/files/pingu.tmpfile | 1 |
5 files changed, 51 insertions, 0 deletions
diff --git a/net-misc/pingu/files/pingu-1.5-makefile.patch b/net-misc/pingu/files/pingu-1.5-makefile.patch new file mode 100644 index 000000000000..a4c04aac31f2 --- /dev/null +++ b/net-misc/pingu/files/pingu-1.5-makefile.patch @@ -0,0 +1,21 @@ +--- a/src/Makefile 2017-11-25 18:39:32.667570139 +0200 ++++ b/src/Makefile 2017-11-25 18:41:29.285573031 +0200 +@@ -17,7 +17,7 @@ + + rundir ?= $(localstatedir)/run + +-pingustatedir = $(rundir)/pingu ++pingustatedir = /run/pingu + + DESTDIR ?= + +@@ -93,8 +93,7 @@ + $(MAKE) -C $@ + + install: $(TARGETS) $(INSTALL_LUA_TARGET) +- $(INSTALLDIR) $(DESTDIR)/$(bindir) $(DESTDIR)/$(sbindir) \ +- $(DESTDIR)/$(pingustatedir) ++ $(INSTALLDIR) $(DESTDIR)/$(bindir) $(DESTDIR)/$(sbindir) + $(INSTALL) $(BIN_TARGETS) $(DESTDIR)/$(bindir) + $(INSTALL) $(SBIN_TARGETS) $(DESTDIR)/$(sbindir) + for dir in $(SUBDIRS); do \ diff --git a/net-misc/pingu/files/pingu.confd b/net-misc/pingu/files/pingu.confd new file mode 100644 index 000000000000..ae4ae8603fd0 --- /dev/null +++ b/net-misc/pingu/files/pingu.confd @@ -0,0 +1,5 @@ +# Config file for /etc/init.d/pingu + +# Various options. +# run `pingu -h` for valid cmdline options +OPTS="" diff --git a/net-misc/pingu/files/pingu.initd b/net-misc/pingu/files/pingu.initd new file mode 100644 index 000000000000..c4de6a754c31 --- /dev/null +++ b/net-misc/pingu/files/pingu.initd @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command=/usr/sbin/pingu +command_args="-d ${OPTS}" +description="Policy routing daemon" +name="Policy routing daemon" +pidfile=/run/pingu/pingu.pid + +depend() { + need net +} diff --git a/net-misc/pingu/files/pingu.service b/net-misc/pingu/files/pingu.service new file mode 100644 index 000000000000..6677e9b8efd8 --- /dev/null +++ b/net-misc/pingu/files/pingu.service @@ -0,0 +1,11 @@ +[Unit] +Description="Policy routing daemon" +After=network.target + +[Service] +Type=simple +ExecStart=/usr/sbin/pingu -d +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/pingu/files/pingu.tmpfile b/net-misc/pingu/files/pingu.tmpfile new file mode 100644 index 000000000000..c48124d1e470 --- /dev/null +++ b/net-misc/pingu/files/pingu.tmpfile @@ -0,0 +1 @@ +d /run/pingu 0755 root root |