aboutsummaryrefslogtreecommitdiff
path: root/trunk/simplepkg.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 14:29:54 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 14:29:54 +0000
commitf9a8dfcd51e481a49355d94a3e74f2762519378f (patch)
tree948f0382081bd2eb8b1b5458a9661b67a090e795 /trunk/simplepkg.SlackBuild
parentfef31cbc9988ead081aaec587222b44ed524b6fd (diff)
downloadsimplepkg-f9a8dfcd51e481a49355d94a3e74f2762519378f.tar.gz
simplepkg-f9a8dfcd51e481a49355d94a3e74f2762519378f.tar.bz2
changed repository layout to trunk/, tags/ and branches/ scheme
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@181 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/simplepkg.SlackBuild')
-rwxr-xr-xtrunk/simplepkg.SlackBuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/trunk/simplepkg.SlackBuild b/trunk/simplepkg.SlackBuild
new file mode 100755
index 0000000..3ef542c
--- /dev/null
+++ b/trunk/simplepkg.SlackBuild
@@ -0,0 +1,72 @@
+#!/bin/bash
+#
+# constroi o pacote do simplepkg
+#
+
+PACKAGE="simplepkg"
+PACK_DIR="package-$PACKAGE"
+BUILD=${BUILD:=1rha}
+VERSION="0.4.9pre24"
+ARCH="noarch"
+LIBEXEC="/usr/libexec/$PACKAGE"
+BINDIR="/usr/bin"
+BINARY_LIST="simplaret repos lspkg"
+SBINDIR="/usr/sbin"
+SBINARY_LIST="mkjail templatepkg jail-update jail-commit metapkg rebuildpkg createpkg"
+LIB_LIST="common.sh"
+DOC_DIR="/usr/doc"
+DOC_LIST="COPYING TODO CHANGELOG README README.pt_BR README.simplaret README.simplaret.pt_BR"
+
+rm -rf $PACK_DIR
+mkdir -p $PACK_DIR/install
+cp install/slack-desc $PACK_DIR/install
+cp install/doinst.sh $PACK_DIR/install
+
+mkdir -p $PACK_DIR/$SBINDIR
+for binary in $SBINARY_LIST; do
+ if [ -f "src/$binary" ]; then
+ cp src/$binary $PACK_DIR/$SBINDIR
+ chmod +x $PACK_DIR/$SBINDIR/$binary
+ fi
+done
+
+mkdir -p $PACK_DIR/$BINDIR
+for binary in $BINARY_LIST; do
+ cp src/$binary $PACK_DIR/$BINDIR
+ chmod +x $PACK_DIR/$BINDIR/$binary
+done
+
+mkdir -p $PACK_DIR/$LIBEXEC
+for lib in $LIB_LIST; do
+ cp lib/$lib $PACK_DIR/$LIBEXEC/
+done
+
+rm -rf $PACK_DIR/$DOC_DIR
+mkdir -p $PACK_DIR/$DOC_DIR/$PACKAGE-$VERSION
+for file in $DOC_LIST; do
+ cp doc/$file $PACK_DIR/$DOC_DIR/$PACKAGE-$VERSION/
+done
+
+# especifico do simplepkg
+mkdir -p $PACK_DIR/etc/$PACKAGE/
+rsync -av --exclude=.svn templates/* $PACK_DIR/etc/$PACKAGE/templates/
+chmod +x $PACK_DIR/etc/$PACKAGE/templates/vserver/vserver.s/*.sh
+chmod +x $PACK_DIR/etc/$PACKAGE/templates/vserver-legacy/vserver-legacy.s/*.sh
+cp conf/simplepkg.conf.new $PACK_DIR/etc/$PACKAGE
+cp conf/repos.conf.new $PACK_DIR/etc/$PACKAGE
+cp conf/generic.mkslackbuild.new $PACK_DIR/etc/$PACKAGE
+
+if [ -f "$PACK_DIR/usr/sbin/jail-upgrade" ]; then
+ cd $PACK_DIR/usr/sbin && ln -s jail-upgrade vserver-upgrade
+ cd -
+fi
+
+cd $PACK_DIR
+chown -R root.root *
+
+makepkg -c y -l y ../simplepkg-$VERSION-$ARCH-$BUILD.tgz
+cd ..
+
+if [ "$CLEANUP" != "no" ]; then
+ rm -rf $PACK_DIR
+fi