aboutsummaryrefslogtreecommitdiffstats
path: root/main/cvechecker
diff options
context:
space:
mode:
Diffstat (limited to 'main/cvechecker')
-rw-r--r--main/cvechecker/APKBUILD3
-rw-r--r--main/cvechecker/cvechecker.post-install2
-rw-r--r--main/cvechecker/cvechecker.pre-install1
3 files changed, 4 insertions, 2 deletions
diff --git a/main/cvechecker/APKBUILD b/main/cvechecker/APKBUILD
index 7b0f6213b9..f18e156d47 100644
--- a/main/cvechecker/APKBUILD
+++ b/main/cvechecker/APKBUILD
@@ -11,7 +11,7 @@ depends="gawk wget libxslt"
depends_dev="libconfig-dev argp-standalone sqlite-dev openssl-dev
mysql-dev sqlite-dev openssl-dev"
makedepends="$depends_dev"
-install="$pkgname.pre-install"
+install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://sourceforge.net/projects/cvechecker/files/$pkgname-$pkgver.tar.gz
cvecheck-c.patch
@@ -41,6 +41,7 @@ build() {
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
+ mkdir -p "$pkgdir"/var/cvechecker &>/dev/null
chgrp -R cvechecker "$pkgdir"/var/cvechecker/* &>/dev/null
chmod -R g+w "$pkgdir"/var/cvechecker &>/dev/null
}
diff --git a/main/cvechecker/cvechecker.post-install b/main/cvechecker/cvechecker.post-install
new file mode 100644
index 0000000000..50a7849c5d
--- /dev/null
+++ b/main/cvechecker/cvechecker.post-install
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "umask 007" >> /var/cvechecker/.profile &>/dev/null
diff --git a/main/cvechecker/cvechecker.pre-install b/main/cvechecker/cvechecker.pre-install
index 9b32da9b2e..f2b4535c11 100644
--- a/main/cvechecker/cvechecker.pre-install
+++ b/main/cvechecker/cvechecker.pre-install
@@ -1,4 +1,3 @@
#!/bin/sh
addgroup cvechecker &>/dev/null
adduser cvechecker -h /var/cvechecker -DG cvechecker &>/dev/null
-echo "umask 007" >> /var/cvechecker/.profile &>/dev/null