1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/net-mgmt/mrtg/files/pkg-install.in
Philip M. Gollucci cb5f7b3507 1. remove /var/run/mrtg via pkg-deinstall instead of via plist
pkg-install is already listed in SUB_FILES, no need to invoke sed manually
2. Fix wrong choice strings for translation
3. Fix some words at russian translation

PR:             ports/143728, ports/143179
Submitted by:   "Alexey V. Panfilov" <ports@subnets.ru> (maintainer)
2010-02-11 19:42:33 +00:00

25 lines
352 B
Bash

#!/bin/sh
# $FreeBSD$
#
PW="/usr/sbin/pw"
CHOWN="/usr/sbin/chown"
CHMOD="/bin/chmod"
MKDIR="/bin/mkdir -p"
NOLOGIN="/usr/sbin/nologin"
MRTG_RUNDIR=%%MRTG_RUNDIR%%
case "$2" in
POST-INSTALL)
if [ ! -d "$MRTG_RUNDIR" ]; then
${MKDIR} $MRTG_RUNDIR
fi
${CHOWN} -R %%USERS%%:%%GROUPS%% ${MRTG_RUNDIR}
${CHMOD} 0700 ${MRTG_RUNDIR}
;;
esac
exit 0