diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-11-17 09:48:38 +0100 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2013-11-18 08:03:06 +0100 |
commit | 1607fee815979c31febcae667851d2cd7d0b3059 (patch) | |
tree | 982e4a628a202380a2104d506dfe6ed4ea65bddd /system | |
parent | 4fd0a596d1ae5d7c17240b5ef097aa25827fe319 (diff) |
system/ansible: Self-host the tarball, cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/ansible/ansible.SlackBuild | 42 | ||||
-rw-r--r-- | system/ansible/ansible.info | 4 |
2 files changed, 17 insertions, 29 deletions
diff --git a/system/ansible/ansible.SlackBuild b/system/ansible/ansible.SlackBuild index e5bdb6272e1a0..3d10271527782 100644 --- a/system/ansible/ansible.SlackBuild +++ b/system/ansible/ansible.SlackBuild @@ -41,17 +41,17 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -60,26 +60,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION - -# Minor unpacking deviation from the SlackBuild template -# due to the source being downloaded from github -# -# wget/curl (no redirection) -> release$VERSION -# browser -> ansible-ansible-v{tag}-{n}-g{sha}.tar.gz -# -- refer to https://github.com/blog/651-annotated-downloads -SOURCEFILE=$(find "$CWD" -type f \( -name "release$VERSION" -o \ - -name "$PRGNAM-$PRGNAM-v$VERSION-*" \) -print | head -1) -mkdir $PRGNAM-$VERSION -# The container directory (ansible-ansible-v{tag}...) must be stripped -tar xvf "$SOURCEFILE" -C $PRGNAM-$VERSION --strip 1 - +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION -sudo chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; patch -p1 < $CWD/Makefile.patch diff --git a/system/ansible/ansible.info b/system/ansible/ansible.info index 5776d2edbf6d2..3b84e6812c480 100644 --- a/system/ansible/ansible.info +++ b/system/ansible/ansible.info @@ -1,8 +1,8 @@ PRGNAM="ansible" VERSION="1.2.1" HOMEPAGE="http://ansible.cc" -DOWNLOAD="http://github.com/ansible/ansible/tarball/release1.2.1" -MD5SUM="74c3e4770418d592dcd465b54e725872" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/ansible-1.2.1.tar.xz" +MD5SUM="b77aa517fd1917324de178056aaab90a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="paramiko PyYAML Jinja2" |