1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/sysutils/polkit/pkg-install
Joe Marcus Clarke 82a86af19b Create the proper directory on package addition.
Reported by:	itetcu
2010-01-19 17:56:23 +00:00

16 lines
407 B
Bash

#!/bin/sh
case $2 in
POST-INSTALL)
mkdir -p /var/lib/polkit-1/localauthority
mkdir -p ${PKG_PREFIX}/etc/polkit-1/localauthority
for i in 10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d; do
mkdir -p /var/lib/polkit-1/localauthority/${i}
mkdir -p ${PKG_PREFIX}/etc/polkit-1/localauthority/${i}
done
chmod 0700 /var/lib/polkit-1
chmod 0700 ${PKG_PREFIX}/etc/polkit-1
exit 0
;;
esac