- Drop @dirrm* from plist

- Use newer plist practices
This commit is contained in:
Dmitry Marakasov 2014-09-23 18:56:46 +00:00
parent 247b017ff7
commit 9c9765eb68
4 changed files with 9 additions and 25 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= pacman
PORTVERSION= 4.0.3
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.archlinux.org/other/pacman/ \
http://mirror.amdmi3.ru/distfiles/
@ -79,7 +79,6 @@ post-patch:
.endif
post-install:
@${RM} -rf ${STAGEDIR}/var # handled by pkg-install
.for f in makepkg.conf pacman.conf
${INSTALL_DATA} ${WRKSRC}/etc/${f} ${STAGEDIR}${PREFIX}/etc/${f}.dist
.endfor

View file

@ -5,16 +5,13 @@
case $2 in
POST-DEINSTALL)
rmdir /var/cache/pacman/pkg 2>/dev/null || true
rmdir /var/cache/pacman 2>/dev/null || true
rmdir /var/lib/pacman 2>/dev/null || true
rmdir /var/lib 2>/dev/null || true
if [ -e /var/lib/pacman -o -e /var/cache/pacman ]; then
if find /var/lib/pacman /var/cache/pacman -type f 2>/dev/null | grep -q ''; then
echo ""
echo "To completely remove the port, please remove the following"
echo "directories and the content manualy:"
echo "directories and the content manualy if its no longer needed:"
echo ""
echo " /var/lib/pacman /var/cache/pacman"
echo " /var/cache/pacman"
echo " /var/lib/pacman"
echo ""
fi
;;

View file

@ -1,10 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
#
case $2 in
POST-INSTALL)
mkdir -p /var/lib/pacman /var/cache/pacman/pkg
;;
esac

View file

@ -118,13 +118,11 @@ man/man8/vercmp.8.gz
%%NLS%%share/locale/zh_TW/LC_MESSAGES/libalpm.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/pacman-scripts.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/pacman.mo
%%NLS%%@dirrm share/locale/sr@latin/LC_MESSAGES
%%NLS%%@dirrm share/locale/sr@latin
%%NLS%%@dirrm share/locale/kk/LC_MESSAGES
%%NLS%%@dirrm share/locale/kk
%%DATADIR%%/ChangeLog.proto
%%DATADIR%%/PKGBUILD-split.proto
%%DATADIR%%/PKGBUILD.proto
%%DATADIR%%/proto.install
@dirrm %%DATADIR%%
@dirrmtry %%PACMAN_ROOT%%
@dir /var/cache/pacman/pkg
@dir /var/cache/pacman
@dir /var/lib/pacman
@dir /var/lib