summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/fileinfo/README12
-rw-r--r--misc/fileinfo/doinst.sh22
-rw-r--r--misc/fileinfo/fileinfo.SlackBuild64
-rw-r--r--misc/fileinfo/fileinfo.info10
-rw-r--r--misc/fileinfo/slack-desc19
5 files changed, 0 insertions, 127 deletions
diff --git a/misc/fileinfo/README b/misc/fileinfo/README
deleted file mode 100644
index b14bfee79c..0000000000
--- a/misc/fileinfo/README
+++ /dev/null
@@ -1,12 +0,0 @@
-This PHP extension allows for the retrieval of information regarding
-a vast majority of files.
-
-This information may include dimensions, quality, length, etc.,
-
-Additionally it can also be used to retrieve the mime type for a
-particular file and for text files proper language encoding.
-
-This package is deprecated but I do need it for an AvantFAX web
-application install I'm putting together. The PECL install for this
-particular extension doesn't work correctly so I've put together this
-SlackBuild script and am sharing it with the community.
diff --git a/misc/fileinfo/doinst.sh b/misc/fileinfo/doinst.sh
deleted file mode 100644
index 6e75204a61..0000000000
--- a/misc/fileinfo/doinst.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-# Use the magic mime file from Apache as the mime database
-if [ -a /etc/httpd/magic ]; then
- ln -s /etc/httpd/magic /etc/magic.mime
-else
- cat << EOF
-
- This extension requires a MIME database /etc/magic.mime. You can
- symlink to the one included with Apache with the following command
-
- # ln -s /etc/httpd/magic /etc/magic.mime
-EOF
-fi
-
-if ! grep ^extension=fileinfo.so /etc/httpd/php.ini 2>&1 > /dev/null; then
- cat << EOF
-
- Add the following line to the /etc/httpd/php.ini configuration
- file in order to enable this extension
-
- extension=fileinfo.so
-EOF
-fi
diff --git a/misc/fileinfo/fileinfo.SlackBuild b/misc/fileinfo/fileinfo.SlackBuild
deleted file mode 100644
index 2d8486ab88..0000000000
--- a/misc/fileinfo/fileinfo.SlackBuild
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-
-PRGNAM=fileinfo
-VERSION=1.0.4
-BUILD=${BUILD:-2}
-TAG=${TAG:-_SBo}
-
-# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
-elif [ "$ARCH" = "s390" ]; then
- SLKCFLAGS="-O2"
-fi
-
-set -e
-
-rm -rf $TMP/$PRGNAM-$VERSION $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-tar xvf $CWD/Fileinfo-$VERSION.tgz
-cd Fileinfo-$VERSION
-chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
-
-phpize
-CFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr
-make
-make install INSTALL_ROOT=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- CREDITS \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/misc/fileinfo/fileinfo.info b/misc/fileinfo/fileinfo.info
deleted file mode 100644
index 09b8caf103..0000000000
--- a/misc/fileinfo/fileinfo.info
+++ /dev/null
@@ -1,10 +0,0 @@
-PRGNAM="fileinfo"
-VERSION="1.0.4"
-HOMEPAGE="http://pecl.php.net/package/Fileinfo"
-DOWNLOAD="http://pecl.php.net/get/Fileinfo-1.0.4.tgz"
-MD5SUM="2854e749db157365c769cb9496f5586f"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES=""
-MAINTAINER="Christopher Walker"
-EMAIL="kris240376@gmail.com"
diff --git a/misc/fileinfo/slack-desc b/misc/fileinfo/slack-desc
deleted file mode 100644
index 6e0e85dd29..0000000000
--- a/misc/fileinfo/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':'.
-
- |-----handy-ruler------------------------------------------------------|
-fileinfo: fileinfo (libmagic bindings)
-fileinfo:
-fileinfo: This PHP extension allows for the retrieval of information regarding
-fileinfo: a vast majority of files.
-fileinfo:
-fileinfo: This information may include dimensions, quality, length, etc.,
-fileinfo:
-fileinfo: Additionally it can also be used to retrieve the mime type for a
-fileinfo: particular file and for text files proper language encoding.
-fileinfo:
-fileinfo: