mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
cb5f7b3507
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)
25 lines
352 B
Bash
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
|