aboutsummaryrefslogtreecommitdiff
path: root/trunk/mkbuild/perl.mkSlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/mkbuild/perl.mkSlackBuild')
-rw-r--r--trunk/mkbuild/perl.mkSlackBuild31
1 files changed, 30 insertions, 1 deletions
diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild
index 130e2cd..165dd40 100644
--- a/trunk/mkbuild/perl.mkSlackBuild
+++ b/trunk/mkbuild/perl.mkSlackBuild
@@ -256,6 +256,27 @@ if [ -d "$PKG/$PREFIX/info" ]; then
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]]"
@@ -304,6 +325,14 @@ config path/to/config_file.new
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"
@@ -312,7 +341,7 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO
<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>