ee518f4189
- Use DATADIR in pkg-plist - Move pkg-install and pkg-deinstall to files/ and use SUB_FILES - Change MASTER_SITES to use MASTER_SITE_PERL_CPAN PR: ports/115281 [1] Submitted by: Felippe de Meirelles Motta <lippe@freebsdbrasil.com.br> [1]
19 lines
318 B
Bash
19 lines
318 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PSH="%%PREFIX%%/bin/psh"
|
|
SHELLS="/etc/shells"
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
if [ -d "${SHELLS%/*}" ] && ! grep -qs "^$PSH\$" "$SHELLS"; then
|
|
if [ `id -u` -eq 0 ]; then
|
|
echo "$PSH" >> "$SHELLS"
|
|
else
|
|
echo "Not root, please add $PSH to $SHELLS manually"
|
|
fi
|
|
fi
|
|
;;
|
|
esac
|