- default configuration making createpkg repository integrated with simplaret
- new repositories
- mkbuild: some svn check routines extended for git
+ - perl.mkSlackBuild
+ - added sections copy_init_scripts and copy_config_files
+ - generic.mkSlackBuild and per.mkSlackBuild
+ - clean_builds now compliant with standard --cleanup behaviour
+ - new section slack-required
- generic.mkSlackBuild:
- config() on postinstall_script now accepting .dist and .sample config file extensions
- - clean_builds now compliant with standard --cleanup behaviour
- added git_source section
- createpkg:
- new options --status, --update and --commit to manage subversion repository
<postinstall_script> off
# Add a post-installation script (doinst.sh)
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
cat << EOSCRIPT > "$PKG/install/doinst.sh"
config() {
NEW="\$1"
EOSCRIPT
</postinstall_script>
+<slack_required> off
+# Copy slack-required
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+if [ -f "$CWD/slack-required" ]; then
+ cp $CWD/slack-required $PKG/install
+fi
+</slack_required>
+
<build_package> off
# Build the package
cd "$PKG"
<clean_builds> off
# Delete source and build directories if requested
-if [ "$CLEANUP" == "yes" ]; then
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
rm -rf "$PKG_WORK" "$PKG"
fi
</clean_builds>
on: slackdesc
off: move_config_files
off: postinstall_script
+off: slack_required
on: build_package
on: clean_builds
#<< End SlackBuild Sections
fi
</compress_info_files>
+<copy_init_scripts> off
+# Copy init scripts
+mkdir -p $PKG/etc/rc.d
+cp $CWD/rc.* $PKG/etc/rc.d/
+</copy_init_scripts>
+
+<copy_config_files> off
+# Copy config files
+mkdir -p $PKG/etc
+for conf in [[CONFIG FILES]]; do
+ mkdir -p $PKG/etc/`dirname $conf`
+ if [ -e "$CWD/conf/$conf" ]; then
+ cp -a $CWD/conf/$conf $PKG/etc/$conf
+ elif [ -e "$CWD/$conf" ]; then
+ cp -a $CWD/$conf $PKG/etc/$conf
+ elif [ -e "$conf" ]; then
+ cp -a $conf $PKG/etc/$conf
+ fi
+done
+</copy_config_files>
+
<install_documentation> off
# Install documentation
DOCS="[[DOCUMENTATION FILES]]"
EOSCRIPT
</postinstall_script>
+<slack_required> off
+# Copy slack-required
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+if [ -f "$CWD/slack-required" ]; then
+ cp $CWD/slack-required $PKG/install
+fi
+</slack_required>
+
<build_package> off
# Build the package
cd "$PKG"
<clean_builds> off
# Delete source and build directories if requested
-if [ "$CLEANUP" == "yes" ]; then
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
rm -rf "$PKG_WORK" "$PKG"
fi
</clean_builds>