Monday, May 28, 2018

portimport: reminder to commit db/user.list

Does anyone have a port to import with a new uid/gid they could test
this with please? :-)

Index: portimport
===================================================================
RCS file: /cvs/ports/infrastructure/bin/portimport,v
retrieving revision 1.5
diff -u -p -r1.5 portimport
--- portimport 9 Feb 2014 15:10:49 -0000 1.5
+++ portimport 28 May 2018 12:38:36 -0000
@@ -62,6 +62,7 @@ cvs -n -d$cvsroot import ports/$pkgpath
read ans?'Does this look correct? [y/n] '
if [[ $ans == +(y|Y) ]]; then
cvs -d$cvsroot import ports/$pkgpath $user ${user}_$timestamp
+ grep -q "^@new" pkg/P* && echo "New users/groups, remember to commit infrastructure/db/user.list!"
cd "$portsdir/${pkgpath%/*}"
cvs -d$cvsroot update -AdP ${pkgpath##*/}
echo "Don't forget to commit the ${pkgpath%/*}/Makefile when you're done!"

No comments:

Post a Comment