diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-03-11 15:40:36 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-03-11 15:40:41 +0000 |
commit | 8c3ea73d2d3783309209a4b252e45754dc9b47ae (patch) | |
tree | 66925ac3e4ece4c5db194690e445045df65ac4b8 /testing | |
parent | 88647c550362ddfd9fef660d16d75c265df67c8d (diff) | |
download | aports-8c3ea73d2d3783309209a4b252e45754dc9b47ae.tar.bz2 aports-8c3ea73d2d3783309209a4b252e45754dc9b47ae.tar.xz |
testing/greenbone-security-assistant: fixed initd and added confd
Diffstat (limited to 'testing')
-rw-r--r-- | testing/greenbone-security-assistant/APKBUILD | 13 | ||||
-rw-r--r-- | testing/greenbone-security-assistant/gsad.confd | 8 | ||||
-rw-r--r-- | testing/greenbone-security-assistant/gsad.initd | 23 |
3 files changed, 25 insertions, 19 deletions
diff --git a/testing/greenbone-security-assistant/APKBUILD b/testing/greenbone-security-assistant/APKBUILD index eeea61e48c..470126a814 100644 --- a/testing/greenbone-security-assistant/APKBUILD +++ b/testing/greenbone-security-assistant/APKBUILD @@ -4,7 +4,7 @@ pkgname=greenbone-security-assistant _pkgname=gsad pkgver=6.0.10 _pkgid=2299 -pkgrel=1 +pkgrel=2 pkgdesc="Greenbone Security Assistant (gsa) - OpenVAS web frontend" url="http://www.openvas.org/" arch="all" @@ -17,6 +17,7 @@ install="" subpackages="$pkgname-doc $pkgname-lang" source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz $_pkgname.initd + $_pkgname.confd $_pkgname.logrotate 001-fortify-source.patch 002-sys_siglist.patch" @@ -47,21 +48,25 @@ package() { make DESTDIR="$pkgdir" install install -Dm644 "$srcdir/$_pkgname.logrotate" "$pkgdir/etc/logrotate.d/$_pkgname" install -Dm755 "$srcdir/$_pkgname.initd" "$pkgdir/etc/init.d/$_pkgname" + install -Dm755 "$srcdir/$_pkgname.confd" "$pkgdir/etc/conf.d/$_pkgname" } md5sums="8f8eae9762ea423957420998f6df1e44 greenbone-security-assistant-6.0.10.tar.gz -5f662b3d219f88042d786830301f5d7f gsad.initd +8102119cb9d33f6860b879b976001e73 gsad.initd +b7ebc9e1b657f3d5fac432842030192c gsad.confd acbc1dc7c674d55675ec931a34c10790 gsad.logrotate cc7b793ba26393891a079fe990a0c305 001-fortify-source.patch bd17aa7ac9a70e97776480c49a263604 002-sys_siglist.patch" sha256sums="9581ba04010987ff6f66edc7393595a2e2b05b64d3463886fba9e5d1152cc8df greenbone-security-assistant-6.0.10.tar.gz -5320d0c82eac6577294643ddb8ffb3b979b03652f04e392a454ef1aec826398b gsad.initd +033244a85159be21cd0a5037613115e8d45b503b885eabfdffa294249caade1e gsad.initd +e5441e7870f7e83f0c4a37721bc0f505de6dd69786baadeb14901b3ae88e1058 gsad.confd 520799df540fc9d665d03095c368d3f7b61badd28fc9e4d1dbd095e374e7eff2 gsad.logrotate 40b340828d4711bffc579a3c3709bafee5983d1501bcd387f41b7e9350dabeda 001-fortify-source.patch 8573e2c4effc3ecf21a90380b46fd1851e364b4007bee7cf7eace19ac2ffe727 002-sys_siglist.patch" sha512sums="0b0e58cef21440764bf2b756f5ab34fb690aedb9d632ec731fe51e3c311e4d0152383487b458662fd28430d1da6ba7dec78b1ec4aaafdfa41dfd8d21e55b21c7 greenbone-security-assistant-6.0.10.tar.gz -294d34fb703ff78628bad285313914bd66800bce7a506e82655aa92bf71c5797f69f07057547ca9e131a5f4701c48392e4bbd9613744c2d070bfea01afef11e1 gsad.initd +d4bd227aeb31393bc147cb638515871bb7a8096a8ebc9bfb9e15f7d41e8c0e289042c2490ee46ca69b039d31d4c7b401523c7496732ee695af8743a75eb83ba5 gsad.initd +60758afbeaf7b0938bee3f9f16d444bb0265a274dd85f2acf878583648b5a4cc2ebc5430fd21a04b3e37d242055466a7b2b2636361bbbd6acb8197c4bf83111c gsad.confd 0d459084f95e00dfb06912b9d89af011fac117a32687ffd3da3887c24e80c074b681c0d87532a4a7511e42c540f8d8b2ceaa04208fff531b94047a08decddd0f gsad.logrotate 7f43460d0a71a29b79345c64342186dcfbdc5345703d35a1493f39df76ac5e4c1b998e1d8d8915ceca31e29d936218c20597412afb93b434cd35f16f666e1cd0 001-fortify-source.patch 51da67628959894b8e9b6de102372f9bad6922379199141706686d4dcdb4ca545e8503510d345a96f16397a782e99574b1ca8c93f5983402c50d9fa9930c1cb5 002-sys_siglist.patch" diff --git a/testing/greenbone-security-assistant/gsad.confd b/testing/greenbone-security-assistant/gsad.confd new file mode 100644 index 0000000000..96e77367b1 --- /dev/null +++ b/testing/greenbone-security-assistant/gsad.confd @@ -0,0 +1,8 @@ +# If you want ssl, you need a certificate +GSAD_EXTRA_ARGS="--http-only" +#By default on locallhost, but you might want to use a reachable ip address +GSAD_LISTEN="--listen=127.0.0.1" +#Manager listens on given address - by default manager listens on all addresses +MANAGER_LISTEN="--mlisten=127.0.0.1" +#Manager listens on given port - by default 9390 +MANAGER_PORT="--mport=9390" diff --git a/testing/greenbone-security-assistant/gsad.initd b/testing/greenbone-security-assistant/gsad.initd index 4be1e8db79..9655c7bf7f 100644 --- a/testing/greenbone-security-assistant/gsad.initd +++ b/testing/greenbone-security-assistant/gsad.initd @@ -1,23 +1,16 @@ #!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation +#Copyright 2016 Alpine Linux # Distributed under the terms of the GNU General Public License v2 # $Id$ +command_args="${GSAD_LISTEN} ${MANAGER_LISTEN} ${MANAGER_PORT} ${GSAD_EXTRA_ARGS}" +name="Greenbone Security Assistant (GSA)" +command=/usr/bin/gsad + +pidfile="/run/gsad.pid" + depend() { + after bootmisc need net } -start() { - ebegin "Starting Greenbone Security Assistant Daemon" - start-stop-daemon --start --name gsad \ - --exec /usr/bin/gsad \ - --pidfile /var/run/gsad.pid - eend $? -} - -stop() { - ebegin "Stop Greenbone Security Assistant Daemon" - start-stop-daemon --stop --name gsad \ - --pidfile /var/run/gsad.pid - eend $? -} |