]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
pine: added sed patch
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 19 Nov 2007 18:51:17 +0000 (18:51 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 19 Nov 2007 18:51:17 +0000 (18:51 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1455 370017ae-e619-0410-ac65-c121f96126d4

patches/pine/pine.SlackBuild
patches/pine/pinepgp-0.18.0-makefile-sed-fix.patch.gz [new file with mode: 0644]

index d3e48be2a7a01af445ac221fb28a6f4ed19b1124..afbf889d125c4c33d77e3fc0809be93ccd319c88 100755 (executable)
@@ -147,7 +147,25 @@ cat $CWD/slack-desc.imapd > $PKG2/install/slack-desc
 cd $TMP
 tar xzvf $SRC_DIR/pinepgp-$PINEPGP.tar.gz
 cd pinepgp-$PINEPGP
-chown -R root.root .
+
+# Make sure ownerships and permissions are sane:
+chown -R root:root .
+find . -perm 664 -exec chmod 644 {} \;
+find . -perm 600 -exec chmod 644 {} \;
+find . -perm 444 -exec chmod 644 {} \;
+find . -perm 400 -exec chmod 644 {} \;
+find . -perm 440 -exec chmod 644 {} \;
+find . -perm 777 -exec chmod 755 {} \;
+find . -perm 775 -exec chmod 755 {} \;
+find . -perm 511 -exec chmod 755 {} \;
+find . -perm 711 -exec chmod 755 {} \;
+find . -perm 555 -exec chmod 755 {} \;
+
+# Patch from Gentoo
+if [ -f "$CWD/pinepgp-0.18.0-makefile-sed-fix.patch.gz" ]; then
+  zcat $CWD/pinepgp-0.18.0-makefile-sed-fix.patch.gz | patch -p1 --verbose || exit $ERROR_PATCH
+fi
+
 ./configure --prefix=/usr || exit $ERROR_CONF
 make || exit $ERROR_MAKE
 make install DESTDIR=$PKG1 || exit $ERROR_INSTALL
diff --git a/patches/pine/pinepgp-0.18.0-makefile-sed-fix.patch.gz b/patches/pine/pinepgp-0.18.0-makefile-sed-fix.patch.gz
new file mode 100644 (file)
index 0000000..b23641c
Binary files /dev/null and b/patches/pine/pinepgp-0.18.0-makefile-sed-fix.patch.gz differ