summaryrefslogtreecommitdiffstats
path: root/main/cvechecker
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-05-08 14:08:12 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-05-09 11:16:40 +0000
commit82534a98135d133cca87ca287f7e817c6316ffc8 (patch)
treeb2bdcc8c675abc85ce27ca46d1d0612658c10fec /main/cvechecker
parentc1c3f61629a9309c910674c6d4c3ea825b6f5af2 (diff)
downloadaports-82534a98135d133cca87ca287f7e817c6316ffc8.tar.bz2
aports-82534a98135d133cca87ca287f7e817c6316ffc8.tar.xz
main/cvechecker: fix permission, minor changes
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 7b0f6213b..f18e156d4 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 000000000..50a7849c5
--- /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 9b32da9b2..f2b4535c1 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