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)
Sun, Feb 2, 1:17 AM
Unknown Object (File)
Mon, Jan 27, 3:04 AM
Unknown Object (File)
Fri, Jan 24, 2:23 PM
Unknown Object (File)
Dec 28 2024, 9:16 PM
Unknown Object (File)
Dec 1 2024, 4:03 PM
Unknown Object (File)
Nov 16 2024, 8:19 PM
Unknown Object (File)
Nov 7 2024, 1:19 PM
Unknown Object (File)
Oct 31 2024, 7:14 AM
Subscribers

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 3247
Build 3280: arc lint + arc unit

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.