diff -urN polipo.orig/files/pkg-deinstall.in polipo/files/pkg-deinstall.in --- polipo.orig/files/pkg-deinstall.in 2014-01-23 00:52:06.000000000 +0900 +++ polipo/files/pkg-deinstall.in 2014-11-04 22:03:21.000000000 +0900 @@ -20,9 +20,6 @@ echo "---> To delete ${POLIPOUSER} user permanently, use 'pw userdel \"${POLIPOUSER}\"'" fi -if [ -d "$POLIPOCACHE" ]; then - rm -r "$POLIPOCACHE" || exit 1 -fi if [ -d "$PPIDDIR" ]; then rm -r "$PPIDDIR" || exit 1 fi @@ -31,6 +28,4 @@ echo "---> You should remove from /etc/newsyslog.conf the \"${POLIPOLOG}\" entry manually." fi -rmdir $POLIPODATA/www/doc $POLIPODATA/www $POLIPODATA 2>/dev/null -rmdir $PCONFIGDIR 2>/dev/null || echo "---> If you not plan to reinstall polipo, you can safely remove ${PCONFIGDIR}." exit 0 diff -urN polipo.orig/files/pkg-install.in polipo/files/pkg-install.in --- polipo.orig/files/pkg-install.in 2014-07-13 03:35:35.000000000 +0900 +++ polipo/files/pkg-install.in 2014-11-04 22:03:21.000000000 +0900 @@ -43,12 +43,6 @@ elif [ "$2" = "POST-INSTALL" ]; then - if [ ! -d "%%DESTDIR%%$POLIPOCACHE" ]; then - mkdir -p "%%DESTDIR%%$POLIPOCACHE" || exit 1 - chown "$POLIPOUSER:$POLIPOGROUP" "%%DESTDIR%%$POLIPOCACHE" || exit 1 - chmod ug=rwx,o= "%%DESTDIR%%$POLIPOCACHE" || exit 1 - fi - if [ ! -d "%%DESTDIR%%$PPIDDIR" ]; then mkdir -p "%%DESTDIR%%$PPIDDIR" || exit 1 chgrp "$POLIPOGROUP" "%%DESTDIR%%$PPIDDIR" || exit 1 diff -urN polipo.orig/pkg-plist polipo/pkg-plist --- polipo.orig/pkg-plist 2014-11-01 02:09:22.000000000 +0900 +++ polipo/pkg-plist 2014-11-04 22:03:21.000000000 +0900 @@ -4,4 +4,4 @@ etc/periodic/daily/400.polipo man/man1/polipo.1.gz %%DATADIR%%/www/index.html -@dir %%PCACHEDIR%% +@dir(polipo,polipo,0770) %%PCACHEDIR%%