]> gitweb.fluxo.info Git - mkbuilds.git/commitdiff
maildrop: forcing uid/gid 5000 on configure
authorrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>
Sun, 23 Dec 2007 22:41:59 +0000 (22:41 +0000)
committerrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>
Sun, 23 Dec 2007 22:41:59 +0000 (22:41 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@53 18ef50b8-d735-4ccd-97c1-689132df3dd9

mail/filter/maildrop/maildrop.mkbuild

index 6838e51a8b0dd42a4039528ff2fa6c424c1304be..ba6ba199d8c862d1aa9f3c992448a606b5729f1a 100644 (file)
 # Construction Variables
 #------------------------
 #
+
+[[SLACK REQUIRED]]="courier-authlib"
+
 # Complete URL address or URL base address ( without $SRC_NAME-$VERSION... )
 [[DOWNLOAD FOLDER URL]]="http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2"
 
+[[BUILD NUMBER]]="3"
+
 #
 # Documentation files. Null ("") to auto-set commom doc-files:
 # NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING readme.*
 [[DOCUMENTATION FILES]]="AUTHORS COPYING COPYING.GPL ChangeLog INSTALL NEWS README UPGRADE"
 
-[[OTHER CONFIGURE ARGS]]="--enable-maildrop-uid=mail"
+[[OTHER CONFIGURE ARGS]]="--enable-maildrop-uid=5000 --enable-maildrop-gid=5000"
 
-[[SLACK REQUIRED]]="courier-authlib"
+#[[REST OF DOINST.SH]]="echo Trying to create user/group vmail with UID/GID 5000... ; groupadd vmail -g 5000 ; useradd vmail -u 5000 -g 5000" 
 
 # SlackBuild model
 [[SLACKBUILD MODEL]]="generic.mkSlackBuild"
@@ -93,3 +98,16 @@ maildrop:
 maildrop:
 maildrop:
 #<slackdesc
+
+#>configure
+echo Creating user and group vmail, if they does not exist...
+groupadd vmail -g 5000
+useradd vmail -u 5000 -g 5000
+
+# Configure
+CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
+  ./configure \
+  --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF
+#<configure
+