Changeset 30f002a for npl


Ignore:
Timestamp:
11/19/20 22:59:34 (4 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
master
Children:
6e9c61f
Parents:
3c9eb90
Message:

new file command, fixes a issue with certain jpegs. this causes trouble in amavis when scanning mails

Location:
npl/overig/file
Files:
2 added
1 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • npl/overig/file/file.SlackBuild

    r3c9eb90 r30f002a  
    33# Automaticly created by importpackage v1.0
    44# Imported from: https://mirrors.slackware.com/slackware/slackware-current/source/a/file/
    5 # Created at Thu Jul  6 14:29:22 CEST 2017
     5# Created at Thu Nov 19 22:22:59 CET 2020
    66
    77
  • npl/overig/file/file.SlackBuild.orig

    r3c9eb90 r30f002a  
    1 #!/bin/sh
     1#!/bin/bash
    22
    3 # Copyright 2005-2008, 2009, 2010, 2013, 2015  Patrick J. Volkerding, Sebeka, MN, USA
     3# Copyright 2005-2008, 2009, 2010, 2013, 2015, 2018, 2019  Patrick J. Volkerding, Sebeka, MN, USA
    44# All rights reserved.
    55#
     
    2121#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2222
     23cd $(dirname $0) ; CWD=$(pwd)
     24
     25PKGNAM=file
    2326VERSION=${VERSION:-$(echo file-*.tar.?z* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)}
    2427BUILD=${BUILD:-1}
    2528
    26 NUMJOBS=${NUMJOBS:--j7}
     29NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
    2730
    2831# Automatically determine the architecture we're building on:
     
    3437       *) export ARCH=$( uname -m ) ;;
    3538  esac
     39fi
     40
     41# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
     42# the name of the created package would be, and then exit. This information
     43# could be useful to other scripts.
     44if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
     45  echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
     46  exit 0
    3647fi
    3748
     
    5061fi
    5162
    52 CWD=$(pwd)
    5363TMP=${TMP:-/tmp}
    5464PKG=$TMP/package-file
     
    6373find . \
    6474  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
    65   -exec chmod 755 {} \; -o \
     75  -exec chmod 755 {} \+ -o \
    6676  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
    67   -exec chmod 644 {} \;
     77  -exec chmod 644 {} \+
    6878
    6979# Make the default data directory /etc/file like it has always been:
    7080zcat $CWD/file.etc.file.diff.gz | patch -p1 --verbose || exit 1
    7181# This is needed after the patch above:
    72 autoreconf || exit 1
     82autoreconf -vif || exit 1
    7383
    7484# Since we're going to include the compiled magic database now (otherwise
     
    8292# versions of file to avoid breaking existing scripts:
    8393zcat $CWD/file.short.diff.gz | patch -p1 -E --verbose || exit 1
     94
     95# Output on ELF objects should be "dynamically linked" for PT_DYNAMIC too, not
     96# just for PT_INTERP:
     97zcat $CWD/file.PT_DYNAMIC.is.dynamically.linked.diff.gz | patch -p1 -E --verbose || exit 1
    8498
    8599# Add zisofs and crda regulatory bin detection
     
    107121make install DESTDIR=$PKG || exit 1
    108122
     123# Don't ship .la files:
     124rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
     125
    109126# Ignore for now - still labeled as experimental
    110127# Actually, let's ignore it until something needs it  :)  <volkerdi>
     
    122139mkdir -p $PKG/etc/file/magic
    123140cp -a magic/Magdir/* $PKG/etc/file/magic
     141chmod 644 $PKG/etc/file/magic/*
    124142
    125143# Add a script to recompile the flat files in the obvious location.
     
    137155
    138156# Strip everything for good measure:
    139 find $PKG | xargs file | grep -e "executable" -e "shared object" \
    140   | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
     157#find $PKG | xargs file | grep -e "executable" -e "shared object" \
     158 # | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
    141159
    142160( cd $PKG/usr/man || exit 1
    143   find . -type f -exec gzip -9 {} \;
     161  find . -type f -exec gzip -9 {} \+
    144162  for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
    145163)
  • npl/overig/file/file.build

    r3c9eb90 r30f002a  
    1 6156
     16157
  • npl/overig/file/file.md5

    r3c9eb90 r30f002a  
    1180362548cdf529ea3ec83eab148c7572  ./doinst.sh.gz
    2 4676f6f3b2d25e05e0b0147a03d25970  ./file-5.31.tar.xz
     294485814a8cd04ffe9e879f0695e0dea  ./file-5.39.tar.lz
    33e44387a21f9847f0ff3b1c74deff8bdf  ./file.crdaregbin.magic.gz
    4 e1e6455b2de8c11276bdde91c629bebf  ./file_dev.pkg
     44a43e3e267dc94d47852e150acffed05  ./file_dev.pkg
    5529ee5a5acfcc82346b17cc35bb3acbec  ./file.etc.file.diff.gz
    6 03b8137248300a058ad80e0e3fb2249f  ./file.pkg
     6fb50f51e47ba642ba528327671644a1c  ./file.pkg
     79300560a5e810a80cdab76b9eb8d0580  ./file.PT_DYNAMIC.is.dynamically.linked.diff.gz
    78652847e073fbca6df77c6696ac4c69e1  ./file.quiet.diff.gz
    89f020cd0ec342bea06b34116ddcd99232  ./file.short.diff.gz
    9 ef4a98a45b0505fcdad8d14203c66569  ./file.SlackBuild
    10 3a23f80e6586eefb7eb1af9525cf2c4e  ./file.SlackBuild.log.gz
    11 124612aafee1040ce8ac02244bbc654a  ./file.SlackBuild.orig
     10daa89d8f244d6388d4d7dc9f3a34f954  ./file.SlackBuild
     11599ddfbc0d731828413b65b6a6640932  ./file.SlackBuild.log.gz
     12e283c429fac458099895f002bb91e4ae  ./file.SlackBuild.orig
    1213a6e8dc289abcf6c796e2d4e8dff41b08  ./file.xz.magic.gz
    1314de45e4cbf64268d44dafc52db3b7a696  ./file.zisofs.magic.gz
    1415efd81ad886482c4a1f35e3e97d04329c  ./recompile_magic.mgc.sh.gz
    15 1ce145ce51e5475077c6d036ed2ebb90  ./slack-desc
     1635fe7bf1f85bdbcb353b9d1a49d23f7a  ./slack-desc
  • npl/overig/file/file.version

    r3c9eb90 r30f002a  
    1 5.31
     15.39
  • npl/overig/file/file_dev.build

    r3c9eb90 r30f002a  
    1 6156
     11
  • npl/overig/file/file_dev.version

    r3c9eb90 r30f002a  
    1 5.31
     15.39
  • npl/overig/file/slack-desc

    r3c9eb90 r30f002a  
    11# HOW TO EDIT THIS FILE:
    2 # The "handy ruler" below makes it easier to edit a package description.  Line
     2# The "handy ruler" below makes it easier to edit a package description. Line
    33# up the first '|' above the ':' following the base package name, and the '|'
    4 # on the right side marks the last column you can put a character in.  You must
    5 # make exactly 11 lines for the formatting to be correct.  It's also
     4# on the right side marks the last column you can put a character in. You must
     5# make exactly 11 lines for the formatting to be correct. It's also
    66# customary to leave one space after the ':'.
    77
     
    1212file: Christos Zoulas has been file's maintainer since 1994.
    1313file:
    14 file: Home FTP site:  ftp://ftp.astron.com/pub/file/
     14file: Home FTP site: ftp://ftp.astron.com/pub/file/
    1515file:
    1616file:
Note: See TracChangeset for help on using the changeset viewer.