diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-25 21:53:14 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-29 10:30:54 -0400 |
commit | 0e92ad7d70a424ea31f79ad09cd890c7dc1e847b (patch) | |
tree | 03f02c0cec2e7091414940b2150664c457db1cde /system | |
parent | d8189217b29cd9a2be2d0ee9d63b3be66f8c541d (diff) |
system/makeself: Don't put files directly in /usr/share.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system')
-rw-r--r-- | system/makeself/makeself.SlackBuild | 20 | ||||
-rw-r--r-- | system/makeself/makeself.info | 2 |
2 files changed, 12 insertions, 10 deletions
diff --git a/system/makeself/makeself.SlackBuild b/system/makeself/makeself.SlackBuild index 8d3977ff36957..50ec277809091 100644 --- a/system/makeself/makeself.SlackBuild +++ b/system/makeself/makeself.SlackBuild @@ -24,19 +24,21 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220425 bkw: Modified by SlackBuilds.org, BUILD=2: +# - put makeself-header.sh in a subdir of /usr/share. +# - use correct github URL (saves as the same filename whether or not +# the client respects the Content-disposition header). + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=makeself VERSION=${VERSION:-2.4.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -61,15 +63,15 @@ cd $PRGNAM-release-$VERSION 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ -sed -i -e "s,HEADER\=\`dirname \"\$0\"\`,HEADER\=\/usr\/share,g" makeself.sh +sed -i -e "s,^HEADER\=\`dirname \"\$0\"\`,HEADER=/usr/share/$PRGNAM," makeself.sh mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/man/man1 -mkdir -p $PKG/usr/share -cp makeself-header.sh $PKG/usr/share +mkdir -p $PKG/usr/share/$PRGNAM +install -m0644 makeself-header.sh $PKG/usr/share/$PRGNAM cp makeself.sh $PKG/usr/bin cat makeself.1 |gzip -9 > $PKG/usr/man/man1/makeself.1.gz diff --git a/system/makeself/makeself.info b/system/makeself/makeself.info index e550885f172d7..2886559e05a24 100644 --- a/system/makeself/makeself.info +++ b/system/makeself/makeself.info @@ -1,7 +1,7 @@ PRGNAM="makeself" VERSION="2.4.5" HOMEPAGE="https://github.com/megastep/makeself" -DOWNLOAD="https://github.com/megastep/makeself/archive/release-2.4.5.tar.gz" +DOWNLOAD="https://github.com/megastep/makeself/archive/release-2.4.5/makeself-release-2.4.5.tar.gz" MD5SUM="18bd1c06156cdf2d006ce21a72078e30" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |