mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 11:26:29 -04:00
Fix package install failure when /var/spool/news already exists.
This commit is contained in:
parent
156aea0bae
commit
e0c01ee5d1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421507
2 changed files with 4 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= sn
|
||||
PORTVERSION= 0.3.8
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= news
|
||||
MASTER_SITES= http://www.infa.abo.fi/~patrik/sn/files/ \
|
||||
http://home.arcor.de/teambushido/fbsd_ports/ \
|
||||
|
@ -36,10 +36,8 @@ post-patch:
|
|||
s|/bin/bash|${LOCALBASE}/bin/bash|' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${STAGEDIR}/var/spool/news
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}/var/spool/news
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
|
|
|
@ -35,5 +35,5 @@ sbin/snscan
|
|||
sbin/snsend
|
||||
sbin/snsplit
|
||||
sbin/snstore
|
||||
@exec /bin/mkdir /var/spool/news
|
||||
@unexec rmdir /var/spool/news 2>/dev/null ||( echo "===> If you don't plan to use them later, you can safely remove /var/spool/news. Deinstall process kept these files intact:" | fmt && for i in $(find /var/spool/news -type f); do echo " - $i"; done)
|
||||
@dir /var/spool/news
|
||||
@postunexec [ ! -d /var/spool/news ] || ( echo "===> If you don't plan to use them later, you can safely remove /var/spool/news. Deinstall process kept these files intact:" | fmt && for i in $(find /var/spool/news -type f); do echo " - $i"; done)
|
||||
|
|
Loading…
Add table
Reference in a new issue