Page MenuHomeFreeBSD

Extract the users/groups creation into a separate shell script.
ClosedPublic

Authored by mat on Apr 13 2016, 1:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 4 2024, 6:17 PM
Unknown Object (File)
Jan 18 2024, 3:51 AM
Unknown Object (File)
Dec 20 2023, 12:15 AM
Unknown Object (File)
Dec 9 2023, 12:58 AM
Unknown Object (File)
Dec 2 2023, 7:07 AM
Unknown Object (File)
Nov 20 2023, 11:27 PM
Unknown Object (File)
Nov 20 2023, 11:27 PM
Unknown Object (File)
Nov 20 2023, 11:27 PM
Subscribers

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mat retitled this revision from to Extract the users/groups creation into a separate shell script..
mat updated this object.
mat edited the test plan for this revision. (Show Details)
mat edited edge metadata.
  • No need to run rm twice.
mat edited edge metadata.
  • Add a warning about groups that should be removed too.
mat edited edge metadata.

Include another PR in a commit message.

antoine requested changes to this revision.Apr 14 2016, 7:20 PM
antoine added a reviewer: antoine.
antoine added a subscriber: antoine.

I believe there is a problem (already existing) in bsd.port.mk:

for a in ${PKGPOSTDEINSTALL}; do \
    [ -f $$a ] && ${CAT} $$a >> ${METADIR}/+POST_DEINSTALL ; \
done ; \
[ -f ${PKGPOSTDEINSTALL} ] && ${CP} ${PKGPOSTDEINSTALL} ${METADIR}/+POST_DEINSTALL; \

the last line will probably fail if there are several words in PKGPOSTDEINSTALL

This revision now requires changes to proceed.Apr 14 2016, 7:20 PM

I believe there is a problem (already existing) in bsd.port.mk:

for a in ${PKGPOSTDEINSTALL}; do \
    [ -f $$a ] && ${CAT} $$a >> ${METADIR}/+POST_DEINSTALL ; \
done ; \
[ -f ${PKGPOSTDEINSTALL} ] && ${CP} ${PKGPOSTDEINSTALL} ${METADIR}/+POST_DEINSTALL; \

the last line will probably fail if there are several words in PKGPOSTDEINSTALL

I don't really understand the last line of what you quoted. But I think it can just be removed.

@bapt ?

I believe there is a problem (already existing) in bsd.port.mk:

for a in ${PKGPOSTDEINSTALL}; do \
    [ -f $$a ] && ${CAT} $$a >> ${METADIR}/+POST_DEINSTALL ; \
done ; \
[ -f ${PKGPOSTDEINSTALL} ] && ${CP} ${PKGPOSTDEINSTALL} ${METADIR}/+POST_DEINSTALL; \

the last line will probably fail if there are several words in PKGPOSTDEINSTALL

Ok, the last line was a leftover, it's not needed at all, I removed it in rP413316. So that bit is fixed.

This revision was automatically updated to reflect the committed changes.