summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-05-08 14:08:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-14 13:41:37 +0000
commitc7bcd4a45487c207d6b58c302bc0b29ffab7d94b (patch)
treeba98e4f455b1cedb3e093e1107e15ff58e741906 /main
parentd578a772710f026b67d096d1280934b195fe837a (diff)
downloadaports-c7bcd4a45487c207d6b58c302bc0b29ffab7d94b.tar.bz2
aports-c7bcd4a45487c207d6b58c302bc0b29ffab7d94b.tar.xz
main/cvechecker: fix permission, minor changes
Diffstat (limited to 'main')
-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