git version of owncloud are dangerous

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2013-12-17 08:36:15 +01:00
parent ec9f0eb210
commit 508e8db94d
4 changed files with 32 additions and 33 deletions

View file

@ -17,27 +17,23 @@ TMP=${TMP:-/tmp/$TAG}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
REPOSITORIES=/home/installs/SlackBuilds/repositories
set -eu
FILENAME=158433-appframework.zip
APPNAM=${PRGNAM#owncloud-apps-}
rm -rf $PKG
mkdir -p $TMP $OUTPUT $PKG/$DOCROOT/owncloud/apps/
cd $PKG/$DOCROOT/owncloud/apps/
if [ -e $REPOSITORIES/$PRGNAM ] ; then
( cd $REPOSITORIES/$PRGNAM
git pull
)
else
git clone https://github.com/owncloud/appframework.git $REPOSITORIES/$PRGNAM
fi
cp -R $REPOSITORIES/$PRGNAM $APPNAM
[ ! -e $CWD/$FILENAME ] && wget -c http://apps.owncloud.com/CONTENT/content-files/$FILENAME -O $CWD/$FILENAME
unzip $CWD/$FILENAME
rm $CWD/$FILENAME
cd $APPNAM
rm -fr .git
VERSION=$(cat appinfo/info.xml | grep -i version\> | sed 's|</\?version>||g' | tr -d \ | sed 's|\t||g' )
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 -o -perm 755 \) \
@ -48,8 +44,8 @@ find . \
mkdir -p $PKG/usr/doc/$PRGNAM
cp -a AUTHORS COPYING README.rst $PKG/usr/doc/$PRGNAM
# Change ownership and perms and create a link.
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/owncloud/apps/$APPNAM
# Change ownership and perms
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/owncloud
chmod 0750 $PKG/$DOCROOT/owncloud/apps/$APPNAM
mkdir -p $PKG/install

View file

@ -19,14 +19,17 @@ OUTPUT=${OUTPUT:-/tmp}
set -eu
FILENAME=157609-files_epubviewer_oc5.tar.gz
APPNAM=files_epubviewer
rm -rf $PKG
mkdir -p $TMP $OUTPUT $PKG/$DOCROOT/owncloud/apps/
cd $PKG/$DOCROOT/owncloud/apps/
[ ! -e $CWD/files_epubviewer_oc5.tar.gz ] && wget -c http://www.les-charles.net/files/files_epubviewer_oc5.tar.gz -O $CWD/files_epubviewer_oc5.tar.gz
tar xf $CWD/files_epubviewer_oc5.tar.gz
[ ! -e $CWD/$FILENAME ] && wget -c http://apps.owncloud.com/CONTENT/content-files/$FILENAME -O $CWD/$FILENAME
tar xf $CWD/$FILENAME
rm $CWD/$FILENAME
cd $APPNAM
VERSION=$(cat appinfo/version)
@ -38,8 +41,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 -o -perm 644 \) \
-exec chmod 640 {} \;
# Change ownership and perms and create a link.
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/owncloud/apps/$APPNAM
# Change ownership and perms
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/owncloud
chmod 0750 $PKG/$DOCROOT/owncloud/apps/$APPNAM
mkdir -p $PKG/install

View file

@ -17,27 +17,23 @@ TMP=${TMP:-/tmp/$TAG}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
REPOSITORIES=/home/installs/SlackBuilds/repositories
set -eu
FILENAME=158434-news.zip
APPNAM=${PRGNAM#owncloud-apps-}
rm -rf $PKG
mkdir -p $TMP $OUTPUT $PKG/$DOCROOT/owncloud/apps/
cd $PKG/$DOCROOT/owncloud/apps/
if [ -e $REPOSITORIES/$PRGNAM ] ; then
( cd $REPOSITORIES/$PRGNAM
git pull
)
else
git clone https://github.com/owncloud/news.git $REPOSITORIES/$PRGNAM
fi
cp -R $REPOSITORIES/$PRGNAM ./$APPNAM
[ ! -e $CWD/$FILENAME ] && wget -c http://apps.owncloud.com/CONTENT/content-files/$FILENAME -O $CWD/$FILENAME
unzip $CWD/$FILENAME
rm $CWD/$FILENAME
cd $APPNAM
rm -fr .git
VERSION=$(cat appinfo/info.xml | grep -i version\> | sed 's|</\?version>||g' | tr -d \ | sed 's|\t||g' )
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 -o -perm 755 \) \
@ -48,10 +44,11 @@ find . \
mkdir -p $PKG/usr/doc/$PRGNAM
cp -a AUTHORS.md CHANGELOG COPYING README.rst $PKG/usr/doc/$PRGNAM
# Change ownership and perms and create a link.
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/owncloud/apps/$APPNAM
# Change ownership and perms
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/owncloud
chmod 0750 $PKG/$DOCROOT/owncloud/apps/$APPNAM
mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc
$PRGNAM: $PRGNAM (RSS/Atom feed aggregator for ownCloud)

View file

@ -3,7 +3,8 @@
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=${VERSION:-$(date +%F | tr - .)}
#VERSION=${VERSION:-$(date +%F | tr - .)}
VERSION=${VERSION:-6.0.0a}
ARCH="noarch" # hardcode ARCH
BUILD=${BUILD:-1}
TAG=${TAG:-cyco}
@ -24,9 +25,11 @@ mkdir -p $TMP $OUTPUT $PKG/$DOCROOT
cd $PKG/$DOCROOT/
rm -rf $PRGNAM-$VERSION
[ ! -e $CWD/$PRGNAM-daily-master.tar.bz2 ] && wget -c http://download.owncloud.org/community/daily/$PRGNAM-daily-master.tar.bz2 -O $CWD/$PRGNAM-daily-master.tar.bz2
#[ ! -e $CWD/$PRGNAM-daily-master.tar.bz2 ] && wget -c http://download.owncloud.org/community/daily/$PRGNAM-daily-master.tar.bz2 -O $CWD/$PRGNAM-daily-master.tar.bz2
#tar xvf $CWD/$PRGNAM-daily-master.tar.bz2
tar xvf $CWD/$PRGNAM-daily-master.tar.bz2
[ ! -e $CWD/$PRGNAM-$VERSION.tar.bz2 ] && wget -c http://download.owncloud.org/community/$PRGNAM-$VERSION.tar.bz2 -O $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM
chown -R root:root .
find . \