aboutsummaryrefslogtreecommitdiffstats
path: root/community/openvas-cli
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-18 11:58:49 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-18 11:59:48 +0000
commit3bc8f4ab96a4d4d196c40d6fab40367396d3f17b (patch)
tree8737927e65bd4b5f3dcede3027c1e796ae683424 /community/openvas-cli
parentc0c65e93d4e2c13f299c0921fef7fe9574f0a962 (diff)
downloadaports-3bc8f4ab96a4d4d196c40d6fab40367396d3f17b.tar.bz2
aports-3bc8f4ab96a4d4d196c40d6fab40367396d3f17b.tar.xz
community/openvas-cli: moved from testing
Diffstat (limited to 'community/openvas-cli')
-rw-r--r--community/openvas-cli/001-fortify-source.patch16
-rw-r--r--community/openvas-cli/APKBUILD47
2 files changed, 63 insertions, 0 deletions
diff --git a/community/openvas-cli/001-fortify-source.patch b/community/openvas-cli/001-fortify-source.patch
new file mode 100644
index 0000000000..49a9cdfd97
--- /dev/null
+++ b/community/openvas-cli/001-fortify-source.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index db7cb9b..3681573 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -190,9 +190,9 @@ configure_file (VERSION.in VERSION)
+ ## Program
+
+ if (MINGW)
+- set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2")
++ set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2")
+ else (MINGW)
+- set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector")
++ set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector")
+ set (LINKER_HARDENING_FLAGS "-Wl,-z,relro -Wl,-z,now")
+ endif (MINGW)
+
diff --git a/community/openvas-cli/APKBUILD b/community/openvas-cli/APKBUILD
new file mode 100644
index 0000000000..970fbfec54
--- /dev/null
+++ b/community/openvas-cli/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=openvas-cli
+pkgver=1.4.4
+pkgrel=0
+_pkgid=2332
+pkgdesc="The OpenVAS Command-Line Interface"
+url="http://www.openvas.org"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="$depends_dev openvas-libraries-dev cmake doxygen xmltoman"
+install=""
+subpackages="$pkgname-doc"
+source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz
+ 001-fortify-source.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var .
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir/" install
+}
+
+md5sums="2a47515f388b4866a1ed072f2d9cc9d8 openvas-cli-1.4.4.tar.gz
+df30d7613d69e24afa633d50ce7cae7f 001-fortify-source.patch"
+sha256sums="1e882037fa4738ec7c3dddd9d72e4db7eaa64c7c91170453b4ed283fa8c92705 openvas-cli-1.4.4.tar.gz
+079c24e87f85d5a1bee0d3b36adba09dca30d525fe0a9ad7b84dc46c18c9d4f8 001-fortify-source.patch"
+sha512sums="9533beaa7daf38fd57c6c6e934d6d30b5ee5ec0b1f47ca3a131583260e5cbb9794bc3d3ff634f9548999fe62658a906d67875e703e5dfec59df18086cf721d07 openvas-cli-1.4.4.tar.gz
+979714b5625b87ec559be6d7520152c713b5455a401e50350b5c342b3769cfa83946a31dd963300cb0b0276fdc28f27ea66854563bec1a744322b6c268202935 001-fortify-source.patch"