Unbreak and fix pkg-plist

- use sed -i '' instead of sed/mv, thus preserving file owner and permissions
- add missed @unexec (similar to the existing ones)

Approved by:	portmgr (clement)
This commit is contained in:
Sam Lawrance 2005-08-06 11:35:32 +00:00
parent 9e936b9bcd
commit 86aed5fe8a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140798
2 changed files with 3 additions and 6 deletions

View File

@ -17,10 +17,6 @@ COMMENT= A collection of classes for the T3X language
BUILD_DEPENDS= tx:${PORTSDIR}/lang/t3x
RUN_DEPENDS= ${BUILD_DEPENDS}
BROKEN= Changes ownership of installed files
DEPRECATED= ${BROKEN}
EXPIRATION_DATE=2005-09-22
ONLY_FOR_ARCHS= i386
MAKE_ENV+= T3XDIR=${LOCALBASE}/t3x/r8

View File

@ -34,5 +34,6 @@ t3x/r8/classes/vedit.dir
@exec echo 'prompt:t3x,string,ttyctl' >>%D/t3x/r8/classes/CLASSNDX
@exec echo 'pstruct:t3x,char,string,iostream' >>%D/t3x/r8/classes/CLASSNDX
@exec echo 'vedit:t3x,string,ttyctl,editor' >>%D/t3x/r8/classes/CLASSNDX
@unexec sed -e '/^config:/,/^vedit:/d' <%D/t3x/r8/classes/CLASSNDX >%D/t3x/ndx.tmp && mv %D/t3x/ndx.tmp %D/t3x/r8/classes/CLASSNDX
@unexec sed -e '/^config:/,/^vedit:/d' <%D/t3x/r8/classes/2/CLASSNDX >%D/t3x/ndx.tmp && mv %D/t3x/ndx.tmp %D/t3x/r8/classes/2/CLASSNDX
@unexec [ -f %D/t3x/r8/classes/CLASSND- ] && sed -i '' '/^ttyctl:/,/^pstruct:/d' %D/t3x/r8/classes/CLASSND- || true
@unexec [ -f %D/t3x/r8/classes/CLASSNDX ] && sed -i '' '/^config:/,/^vedit:/d' %D/t3x/r8/classes/CLASSNDX || true
@unexec [ -f %D/t3x/r8/classes/2/CLASSNDX ] && sed -i '' '/^config:/,/^vedit:/d' %D/t3x/r8/classes/2/CLASSNDX || true