diff options
Diffstat (limited to 'simplepkg.SlackBuild')
-rwxr-xr-x | simplepkg.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/simplepkg.SlackBuild b/simplepkg.SlackBuild index 5ab80af..c25ffc9 100755 --- a/simplepkg.SlackBuild +++ b/simplepkg.SlackBuild @@ -24,8 +24,10 @@ cp install/doinst.sh $PACK_DIR/install mkdir -p $PACK_DIR/$SBINDIR for binary in $SBINARY_LIST; do - cp src/$binary $PACK_DIR/$SBINDIR - chmod +x $PACK_DIR/$SBINDIR/$binary + if [ -f "src/$binary" ]; then + cp src/$binary $PACK_DIR/$SBINDIR + chmod +x $PACK_DIR/$SBINDIR/$binary + fi done mkdir -p $PACK_DIR/$BINDIR @@ -53,8 +55,11 @@ chmod +x $PACK_DIR/etc/$PACKAGE/vserver-legacy.s/*.sh cp conf/simplepkg.conf.new $PACK_DIR/etc/$PACKAGE cp conf/repos.conf.new $PACK_DIR/etc/$PACKAGE cp conf/createpkg.conf.new $PACK_DIR/etc/$PACKAGE -cd $PACK_DIR/usr/sbin && ln -s jail-upgrade vserver-upgrade -cd - + +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 * |