+#---------------------------------------------------------------------
+# Default simplepkg configuration.
+# File: /etc/simplepkg/default/simplepkg.conf
#
-# /etc/simplepkg/default/simplepkg.conf
-#
+# This file contains the default behaviour of simplepkg scripts.
+# Please do not edit this file. Use /etc/simplepkg/simplepkg.conf
+# instead for overriding the default configuration.
+#---------------------------------------------------------------------
+#---------------------------------------------------------------------
+# GENERAL SECTION
+#---------------------------------------------------------------------
# Default architecture: set this option if you dont want simplepkg
# to use the value from /etc/slackware-version
# DEFAULT_ARCH="i386"
# Temporary folder
TMP="/tmp"
-# Where jails are placed
-JAIL_ROOT="/vservers"
+#---------------------------------------------------------------------
+# MKBUILD AND CREATEPKG SECTION
+#---------------------------------------------------------------------
-# Wheter mkjail should add new jails in the jail list;
-# to enable it, set to "1" or "yes"
-ADD_TO_JAIL_LIST="1"
+# Set SlackBuilds default directory for scripts
+SLACKBUILDS_DIR="/var/simplepkg/slackbuilds"
+
+# Set default directory for mkbuilds
+MKBUILDS_DIR="/var/simplepkg/mkbuilds"
+
+# Set SlackBuilds svn default repository
+SLACKBUILDS_SVN="http://slack.sarava.org/slackbuilds"
+
+# Set mkbuilds svn default repository
+MKBUILDS_SVN="http://slack.sarava.org/mkbuilds"
+
+# Set binaries default repository directory
+MAKEPKG_REPOS="/var/simplepkg/repos"
+
+# Set the binaries default repository nested folder, useful if you manage
+# packages from different distribution versions and architectures in the
+# same parent folder.
+#
+# You can use any string here and also de special parameters none, distro,
+# arch and version. You can also mix more than one parameter, like
+# "distro-version".
+#
+# Default value is "distro/distro-version" and you should change this just
+# if you know what are you doing.
+MAKEPKG_REPOS_STYLE="distro/distro-version"
+
+# If your binary repository is under svn and you plan to manage it with an
+# user different than root, then set this parameter with the username
+# owning the repository working copy.
+MAKEPKG_SVN_USER=""
+
+# Same as the previous option, but for svn repository group.
+MAKEPKG_SVN_GROUP=""
+
+# If your mkbuild and slackbuild repositories is under svn and you plan to
+# manage it with an user different than root, then set this parameter with the
+# username owning the repository working copy.
+MKBUILDS_SVN_USER=""
+
+# Same as the previous option, but for svn repository group.
+MKBUILDS_SVN_GROUP=""
+
+# Set sources default directory
+SOURCE_DIR="/var/simplepkg/sources"
+
+# Set color style
+# possible values are: color,gray, none
+COLOR_MODE="none"
+
+# Createpkg architecture
+CREATE_ARCH="i486"
+
+# Remove build files
+CREATE_CLEANUP="yes"
+
+# Remove old packages from repository tree by createpkg
+REMOVE_OLD_PACKAGE="off"
+
+# Move package to SlackBuilds-like tree
+MOVE_BIN_PACKAGE="on"
+
+# Move package's slack-required to binary repository
+MOVE_SLACK_REQUIRED="on"
+
+#---------------------------------------------------------------------
+# SIMPLARET SECTION
+#---------------------------------------------------------------------
# Whether mkjail should clean the package cache before installation
# to enable it, set to "1" or "yes"
# stored in the same tree.
STORE_ROOT_PATCHES_ON_PATCHES_DIR="0"
+#---------------------------------------------------------------------
+# TEMPLATEPKG SECTION
+#---------------------------------------------------------------------
+
# Set to yes if your templates will be placed in a subversion repository
# This just work if TEMPLATE_STORAGE_STYLE is set to own-folder (default)
TEMPLATES_UNDER_SVN="no"
TEMPLATE_STORAGE_STYLE="own-folder"
#---------------------------------------------------------------------
-# MKBUILD AND CREATEPKG SECTION
+# MKJAIL SECTION
#---------------------------------------------------------------------
-# Set SlackBuilds default directory from scripts
-SLACKBUILDS_DIR="/var/simplepkg/slackbuilds"
-
-# Set mkbuild default directory from parameters files
-MKBUILDS_DIR="/var/simplepkg/mkbuilds"
-
-# Set SlackBuilds svn default repository
-SLACKBUILDS_SVN="http://slack.sarava.org/slackbuilds"
-
-# Set mkbuilds svn default repository
-MKBUILDS_SVN="http://slack.sarava.org/mkbuilds"
-
-# Set binaries default repository directory
-MAKEPKG_REPOS="/var/simplepkg/repos"
-
-# Set the binaries default repository nested folder, useful if you manage
-# packages from different distribution versions and architectures in the
-# same parent folder.
-#
-# You can use any string here and also de special parameters none, distro,
-# arch and version. You can also mix more than one parameter, like
-# "distro-version".
-#
-# Default value is "distro/distro-version" and you should change this just
-# if you know what are you doing.
-MAKEPKG_REPOS_STYLE="distro/distro-version"
-
-# Set sources default directory
-SOURCE_DIR="/var/simplepkg/sources"
-
-# Set color style
-# possible values are: color,gray, none
-COLOR_MODE="none"
-
-# Createpkg architecture
-CREATE_ARCH="i486"
-
-# Remove build files
-CREATE_CLEANUP="yes"
-
-# Remove old packages from repository tree by createpkg
-REMOVE_OLD_PACKAGE="off"
-# Move package to SlackBuilds-like tree
-MOVE_BIN_PACKAGE="on"
-
-# Move package's slack-required to binary repository
-MOVE_SLACK_REQUIRED="on"
+# Where jails are placed
+JAIL_ROOT="/vservers"
-#---------------------------------------------------------------------
+# Wheter mkjail should add new jails in the jail list;
+# to enable it, set to "1" or "yes"
+ADD_TO_JAIL_LIST="1"
SOURCE_DIR="`eval_parameter SOURCE_DIR /var/simplepkg/sources`"
SLACKBUILDS_DIR="`eval_parameter SLACKBUILDS_DIR /var/simplepkg/slackbuilds`"
SLACKBUILDS_SVN="`eval_parameter SLACKBUILDS_SVN http://slack.sarava.org/slackbuilds`"
+ SVN_USER="`eval_parameter MAKEPKG_SVN_USER`"
+ SVN_GROUP="`eval_parameter MAKEPKG_SVN_GROUP`"
COLOR_MODE="`eval_parameter COLOR_MODE none`"
CREATE_ARCH="`eval_parameter CREATE_ARCH $(default_arch)`"
if [ -d "$MAKEPKG_REPOS/.svn" ]; then
cwd="`pwd`"
- cd $MAKEPKG_REPOS && svn update
+ chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
+ cd $MAKEPKG_REPOS && su_svn update
cd $cwd
fi
if [ -d "$MAKEPKG_REPOS/.svn" ]; then
cwd="`pwd`"
- cd $MAKEPKG_REPOS && svn status
+ cd $MAKEPKG_REPOS && su_svn status
cd $cwd
fi
if [ -d "$MAKEPKG_REPOS/.svn" ]; then
cwd="`pwd`"
+ chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
cd $MAKEPKG_REPOS
if [ ! -z "$1" ]; then
- svn commit -m $*
+ su_svn commit -m $*
else
- svn commit
+ su_svn commit
fi
cd $cwd
fi
if [ -d "$MAKEPKG_REPOS/.svn" ] && ! svn_check $NEW_REPOS; then
cwd="`pwd`"
cd $MAKEPKG_REPOS
- svn add $( echo ${SCRIPT_BASE#$SLACKBUILDS_DIR/} )
+ chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
+ su_svn add $( echo ${SCRIPT_BASE#$SLACKBUILDS_DIR/} )
cd $cwd
fi
fi
if [ "`package_version $file`" != "$PACKAGE_VERSION" ] || \
[ "`package_arch $file`" != "$PACKAGE_ARCH" ] || \
[ "`package_build $file`" != "$PACKAGE_BUILD" ]; then
- svn del --force $file
+ chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
+ su_svn del --force $file
fi
else
rm $file
for file in `find $MAKEPKG_REPOS -name "$PACKAGE.slack-required"`; do
if svn_check $file; then
+ chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
if [ $MOVE_SLACK_REQUIRED -eq $off ]; then
- svn del --force $file
+ su_svn del --force $file
elif [ ! -z "$SLACK_REQUIRED" ] && [ "$NEW_REPOS/$PACKAGE.slack-required" != "$file" ]; then
- svn del --force $file
+ su_svn del --force $file
fi
else
rm $file
if [ -d "$NEW_REPOS/.svn" ]; then
cwd="`pwd`"
cd $NEW_REPOS
- svn add $PKG_NAME
+ chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
+ su_svn add $PKG_NAME
cd $cwd
fi
if [ -d "$NEW_REPOS/.svn" ] && ! svn_check $NEW_REPOS/$PACKAGE.slack-required; then
cwd="`pwd`"
cd $NEW_REPOS
- svn add $PACKAGE.slack-required
+ chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
+ su_svn add $PACKAGE.slack-required
cd $cwd
fi
fi