aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev/perl/perl-cgi-formbuilder/Manifest23
-rw-r--r--dev/perl/perl-cgi-formbuilder/perl-cgi-formbuilder.SlackBuild251
-rw-r--r--dev/perl/perl-cgi-session/Manifest23
-rw-r--r--dev/perl/perl-cgi-session/perl-cgi-session.SlackBuild251
-rw-r--r--dev/perl/perl-html-parser/Manifest23
-rwxr-xr-xdev/perl/perl-html-parser/perl-html-parser.SlackBuild78
-rw-r--r--dev/perl/perl-html-scrubber/Manifest24
-rw-r--r--dev/perl/perl-html-scrubber/perl-html-scrubber.SlackBuild226
-rw-r--r--dev/perl/perl-html-scrubber/slack-required4
-rw-r--r--dev/perl/perl-mail-sendmail/Manifest23
-rw-r--r--dev/perl/perl-mail-sendmail/perl-mail-sendmail.SlackBuild251
-rw-r--r--dev/perl/perl-text-markdown/Manifest24
-rw-r--r--dev/perl/perl-text-markdown/perl-text-markdown.SlackBuild251
-rw-r--r--dev/perl/perl-text-markdown/perl-text-markdown.diff13
14 files changed, 1461 insertions, 4 deletions
diff --git a/dev/perl/perl-cgi-formbuilder/Manifest b/dev/perl/perl-cgi-formbuilder/Manifest
new file mode 100644
index 00000000..bb2cacd4
--- /dev/null
+++ b/dev/perl/perl-cgi-formbuilder/Manifest
@@ -0,0 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST CGI-FormBuilder-3.0501.tgz 167585 MD5 65646f3064ecaef5e8c1dc38dd7c3807 RMD160 94e2dd395b87071c8dc72276026770e565016463 SHA1 f682cad5f66c7b545c31605d521340e3f0c15ac5 SHA256 45e84b1f39730874b19f5982294abaa335bc7bb43b35a24943b809ea627f3a0c SHA512 ec2fa33e90f63441b98a525be985cf5c8402028719e0d1a452279255eee53271d3b164ecb4b65485c50b0cce96e1f3779e3302a654d7302e270be6939c8ae51e
+MKBUILD perl-cgi-formbuilder.mkbuild 2646 MD5 e5dbb1d780586ddc7acfaaf927eff98e RMD160 18cd657d764c5fcc197fa96845e71c76c0c38d31 SHA1 e607b7b7f3ae7abfe233d62b75baaea0617a68b7 SHA256 d6e412fbd7a687b82f274e0784559d005d3244b4256b4dd90e91f2fb9087c93e SHA512 7e9f3dd29fe0ecefd630e26d8852ac585f78a5f83e6dc8e9596cf095a6383e30527c0495131d77f6ca0c7950823ebc964fc7ebc656fad69f1074736459c1a66f
+SLACKBUILD perl-cgi-formbuilder.SlackBuild 8099 MD5 c05e38ea5eb682ec56e225e12a01ccf6 RMD160 33c87e22af2e888de2031ecfc3945018979032fa SHA1 4b45394a6304bd1e4c4b730e1fa3cbb0da5e4ee6 SHA256 cf158e597e4886155ffd73080a7d85e1c98b4bd0529d735921f29252ffd2c750 SHA512 209c32084f1e3bfd6f48a90a2e03fc874e0d349ea1b2e9cb7402c130001773edde0d1a1cb47424180f453a53334a3c4047b88a2efe961ae7e52f028769852c1f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBCAAGBQJKihg6AAoJEEHL93ESzgeiuzQP/2MAdPxbv3inzosiHDNdXN0q
+4ASIAzEXQdDHD4IC4Xz8JedZr5WJskb+k5S5/PRT2/UkTB4znaJWtLvAgqy+a1JU
+nUfNN/6jfcaXNTTBNc6l5GSBpcoKMP6X+RwqX7VHJUPCw02mnKhLn3LEzGh16lw3
+3F6YF95zRwPy1Hbh3cyyn3gzmdPsPxcv/JAUasXfmmVTklui3fwaJAqOl68fYI2m
+ncEasdUKCr7jHQqxZdRPdU1rVgikaI+aKLqoAXuOOcq2vGVhL12D4QgC1iQq51J7
+WNIEtCZ2/ImpjaKd37escQueEcr8iO8Ykkj+e2sKDM3hLwvBsLXdf2/cVLhJpF8P
+siYWeN73KHBcl2uE0cSeOC+WSz9/Elw5IrWYMz7llHuAQztX+13b/nUza2eMK4BY
+UxLCh8IUHya/FvIf8OI6FLg2WIajeWyDRKiNmF/uKJRBMlel1+K4t1qq/mcnZ3/M
+qB8cUbc2Big/x4YEMISFAmJhR/r+MjPdM4Iw8PZgY4uuIWU35v6faGzCBoze7+Ov
+dmtNa3NxOfJG8ktjvQEMhZvjBbuOEbXglaqL0fxSvXf6fDVFRDKSPqVyZmy3v+4U
+b2NA949XacBS1NSXUPr0ab5YC99VAaJpChdIV3DYPzaEcX6mP1ErpapLe8uE/A3V
+v/ySGzyPvknH+2w2Mo7E
+=TV5G
+-----END PGP SIGNATURE-----
diff --git a/dev/perl/perl-cgi-formbuilder/perl-cgi-formbuilder.SlackBuild b/dev/perl/perl-cgi-formbuilder/perl-cgi-formbuilder.SlackBuild
new file mode 100644
index 00000000..d2538d26
--- /dev/null
+++ b/dev/perl/perl-cgi-formbuilder/perl-cgi-formbuilder.SlackBuild
@@ -0,0 +1,251 @@
+#!/bin/bash
+#
+# perl-cgi-formbuilder.SlackBuild is free software; you can redistribute
+# it and/or modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the License,
+# or any later version.
+#
+# perl-cgi-formbuilder.SlackBuild is distributed in the hope that it will
+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# slackbuild for perl-cgi-formbuilder, by Silvio Rhatto
+# requires:
+# tested: perl-cgi-formbuilder-3.0501
+# model: perl.mkSlackBuild $Rev: 796 $
+#
+
+# Look for slackbuildrc
+if [ -f ~/.slackbuildrc ]; then
+ source ~/.slackbuildrc
+elif [ -f /etc/slackbuildrc ]; then
+ source /etc/slackbuildrc
+fi
+
+# Set variables
+CWD="$(pwd)"
+SRC_NAME="CGI-FormBuilder"
+PKG_NAME="perl-cgi-formbuilder"
+ARCH=${ARCH:=i486}
+SRC_VERSION=${VERSION:=3.0501}
+PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
+BUILD=${BUILD:=1rha}
+SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
+TMP=${TMP:=/tmp}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
+REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="dev/perl/perl-cgi-formbuilder"}
+PREFIX=${PREFIX:=/usr}
+PKG_WORK="$TMP/$SRC_NAME"
+CONF_OPTIONS=${CONF_OPTIONS:=""}
+NUMJOBS=${NUMJOBS:=""}
+
+# Set system libraries' path and optmization flags based on $ARCH
+LIBDIR="$PREFIX/lib"
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIR="$PREFIX/lib64"
+fi
+
+# Set error codes (used by createpkg)
+ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
+ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
+ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
+ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
+
+# Clean up any leftovers of previous builds
+rm -rf "$PKG_SRC" 2> /dev/null
+rm -rf "$PKG" 2> /dev/null
+
+# Create directories if necessary
+mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR
+mkdir -p "$PKG" || exit $ERROR_MKDIR
+mkdir -p "$REPOS" || exit $ERROR_MKDIR
+mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
+
+# Dowload source if necessary
+SRC="$SRC_NAME-$VERSION.tgz"
+URL="http://search.cpan.org/CPAN/authors/id/N/NW/NWIGER/$SRC"
+
+if [ ! -s "$SRC_DIR/$SRC" ] || ! gzip "$SRC_DIR/$SRC" 2> /dev/null; then
+ wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
+fi
+
+# Check Manifest file
+if [ -e "$CWD/Manifest" ]; then
+
+ # Manifest signature checking
+ if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then
+ echo "Checking Manifest signature..."
+ gpg --verify $CWD/Manifest
+ if [ "$?" != "0" ]; then
+ exit $ERROR_MANIFEST
+ fi
+ fi
+
+ MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
+
+ for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
+
+ MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`"
+ MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`"
+ MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`"
+
+ if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then
+ MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE"
+ else
+ MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`"
+ fi
+
+ if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then
+ continue
+ fi
+
+ echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..."
+
+ SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`"
+ SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`"
+
+ # Check source code size
+ if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then
+ echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "Size match."
+ fi
+
+ # Check source code integrity
+ for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ if [ $ALGO = "rmd160" ]; then
+ ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
+ else
+ ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`"
+ fi
+ ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`"
+ ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }')
+ if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then
+ echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "$ALGO match."
+ fi
+ done
+
+ done
+
+else
+ exit $ERROR_MANIFEST
+fi
+
+# Untar
+cd "$PKG_WORK"
+tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
+PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
+cd "$PKG_SRC"
+
+# Patch source
+patches=" [[PATCH URLS]]
+ $PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff
+ $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff"
+for patch in $patches; do
+ patch="`basename $patch`"
+ if [ -f "$CWD/$patch" ]; then
+ patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch" ]; then
+ patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/$patch.gz" ]; then
+ gzip -dc "$CWD/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch.gz" ]; then
+ gzip -dc "$CWD/patches/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$SRC_DIR/$patch" ]; then
+ if [ "`basename $patch .gz`" != "$patch" ]; then
+ gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ elif [ "`basename $patch .bz2`" != "$patch" ]; then
+ bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ else
+ patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH
+ fi
+ fi
+done
+
+# Configure
+perl Makefile.PL || exit $ERROR_CONF
+
+# Compile
+make $NUMJOBS || exit $ERROR_MAKE
+
+# Install
+make install DESTDIR="$PKG" || exit $ERROR_INSTALL
+
+# Fix .packlist
+string="`echo $PKG | sed -e 's/\//\\\\\//g'`"
+for file in `find $PKG -name .packlist`; do
+ sed -e "s/^$string//g" $file > $file.tmp
+ mv $file.tmp $file
+done
+
+# Strip binaries
+( cd "$PKG"
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Install documentation
+DOCS="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*"
+mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
+for doc in $DOCS; do
+ if [ -f "$doc" ]; then
+ cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
+ fi
+done
+
+# Add package description (slack-desc)
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+cat << EODESC > "$PKG/install/slack-desc"
+# 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-----------------------------------------|
+perl-cgi-formbuilder: perl-cgi-formbuilder
+perl-cgi-formbuilder:
+perl-cgi-formbuilder: Easily generate and process stateful forms.
+perl-cgi-formbuilder:
+perl-cgi-formbuilder:
+perl-cgi-formbuilder:
+perl-cgi-formbuilder:
+perl-cgi-formbuilder:
+perl-cgi-formbuilder:
+perl-cgi-formbuilder:
+perl-cgi-formbuilder:
+EODESC
+
+# Build the package
+cd "$PKG"
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+
+# Delete source and build directories if requested
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
+ rm -rf "$PKG_WORK" "$PKG"
+fi
diff --git a/dev/perl/perl-cgi-session/Manifest b/dev/perl/perl-cgi-session/Manifest
new file mode 100644
index 00000000..0a0dfb04
--- /dev/null
+++ b/dev/perl/perl-cgi-session/Manifest
@@ -0,0 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST CGI-Session-4.41.tar.gz 69645 MD5 e61bedf99c721167e3f3029710b3b7fc RMD160 ea2807f16a85ffc49b8fcca369302e8f638fbd6c SHA1 9f86a62b759801d985959cb70ab3f5874511e03f SHA256 f848afef69009c202ad0daa1c696618fc37c7a93277aef6119fa5bff08eeed23 SHA512 ec9dd5eed2be694c66c71ae75d2fea434cb34b53d8bbb5d8ea10de0dd523d250bbad8494fbf5e4b7a2d340a637bb575bf31e2bbe9c3aa931b241957668558500
+MKBUILD perl-cgi-session.mkbuild 2382 MD5 bff15346cbb16f024fb58787c5360f32 RMD160 d5b74ee436e797fdf5e6c6b424cce542990f1ca0 SHA1 24151b9a57c21695d8474e97e2ab72d5c83534b9 SHA256 57e495eff4cf2d64ed886c214603fb4a82f0bbe5412ac1f84e18ee82b29f3d84 SHA512 3639aa58e9b78708cd3d7a2ed8611f753872d8dd657f5306c74efab03b419160aac1eefafb9c030493e2f1ed2b434dbc518732b46787cfff6cdbfde8865da2cc
+SLACKBUILD perl-cgi-session.SlackBuild 8029 MD5 56765d3023a3006e463892657348ace1 RMD160 1848f30cf653cc50945755e3b008b12464c4abcc SHA1 81884f0031b391129573be42ba46e226fc41675b SHA256 7c9f513a90dd93ee6aec28615a2ccc6f2603be732e90becc480921ece9fef4cc SHA512 771c9678c8a02916a9363e4f659d5893871a45fa56b22366b2505e7a050f480fd99c8990a03e6d78e5e535ecfe47caf49912820a04e5c8b236b4dfe5d479e73f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBCAAGBQJKihiVAAoJEEHL93ESzgeiU1kP/jlrX/3uEcYCN/HX9c9Td/RB
+fCb85wVUWdwXCeiGUThAxx0NUmQvmSbLsQs8HctYT0qOCZEo1Oe6gz7NmYBq4hwY
+uE8J+XG/pcmnDczHS7SC3mCH1CFC+NkTPNYWfxNUSaBPTwum4QHt62SYpy03XFlw
+2RppmXXp66ghBJ3JCVFRdAEaoWAvWJq0Kd4J7HGD9NSFeztrohsJeQD/PtWyQah+
+yhGXZkZ4aJUE4V1hpP4enwiyWH7kudqc6tl0Q4pkmMajkmhkXNVKmkNnLcYcFpe/
+IiG3FXSqc9XY/ZlASma392oZI4ceSN30HgUPF4kt6eA9ZHGuWj870lvi2kJg/Ku9
+hopYHvvpy6hZguA+8Td/sDsqjZ0yqJbVuY0fAbpR/NwcREb4nCM6rBA6wPB3IMJG
+8fHRfju9kzCEaIHzqQLpihrsKu10DerbNUH8UgbPEI3Uw9ktwX7YWGaKe9j+7Z6m
+uyAQM4FAVaOy0Jk0s50qXJBXAHjKDt+Xrj3FFJ1++UYOlT05FCuS28pHFSbveIBL
+yCwDe4lXBhhnbGtRQo9qtHZ1E+vEWtXD2WvkbmhHiH9/huaj7O4Hqr0p4BI8I63s
+VrBHB8CcKwBgNZAweDGZFf9vXwD4R4eFiqik2JfnEtwshoC4BaI2OryCYsaaaW+6
+8cNO+5QZ3m3Bp9QiEdUy
+=IOCM
+-----END PGP SIGNATURE-----
diff --git a/dev/perl/perl-cgi-session/perl-cgi-session.SlackBuild b/dev/perl/perl-cgi-session/perl-cgi-session.SlackBuild
new file mode 100644
index 00000000..4352d3a1
--- /dev/null
+++ b/dev/perl/perl-cgi-session/perl-cgi-session.SlackBuild
@@ -0,0 +1,251 @@
+#!/bin/bash
+#
+# perl-cgi-session.SlackBuild is free software; you can redistribute
+# it and/or modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the License,
+# or any later version.
+#
+# perl-cgi-session.SlackBuild is distributed in the hope that it will
+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# slackbuild for perl-cgi-session, by Silvio Rhatto
+# requires:
+# tested: perl-cgi-session-4.41
+# model: perl.mkSlackBuild $Rev: 796 $
+#
+
+# Look for slackbuildrc
+if [ -f ~/.slackbuildrc ]; then
+ source ~/.slackbuildrc
+elif [ -f /etc/slackbuildrc ]; then
+ source /etc/slackbuildrc
+fi
+
+# Set variables
+CWD="$(pwd)"
+SRC_NAME="CGI-Session"
+PKG_NAME="perl-cgi-session"
+ARCH=${ARCH:=i486}
+SRC_VERSION=${VERSION:=4.41}
+PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
+BUILD=${BUILD:=1rha}
+SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
+TMP=${TMP:=/tmp}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
+REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="dev/perl/perl-cgi-session"}
+PREFIX=${PREFIX:=/usr}
+PKG_WORK="$TMP/$SRC_NAME"
+CONF_OPTIONS=${CONF_OPTIONS:=""}
+NUMJOBS=${NUMJOBS:=""}
+
+# Set system libraries' path and optmization flags based on $ARCH
+LIBDIR="$PREFIX/lib"
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIR="$PREFIX/lib64"
+fi
+
+# Set error codes (used by createpkg)
+ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
+ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
+ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
+ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
+
+# Clean up any leftovers of previous builds
+rm -rf "$PKG_SRC" 2> /dev/null
+rm -rf "$PKG" 2> /dev/null
+
+# Create directories if necessary
+mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR
+mkdir -p "$PKG" || exit $ERROR_MKDIR
+mkdir -p "$REPOS" || exit $ERROR_MKDIR
+mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
+
+# Dowload source if necessary
+SRC="$SRC_NAME-$VERSION.tar.gz"
+URL="http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/$SRC"
+
+if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then
+ wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
+fi
+
+# Check Manifest file
+if [ -e "$CWD/Manifest" ]; then
+
+ # Manifest signature checking
+ if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then
+ echo "Checking Manifest signature..."
+ gpg --verify $CWD/Manifest
+ if [ "$?" != "0" ]; then
+ exit $ERROR_MANIFEST
+ fi
+ fi
+
+ MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
+
+ for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
+
+ MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`"
+ MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`"
+ MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`"
+
+ if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then
+ MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE"
+ else
+ MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`"
+ fi
+
+ if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then
+ continue
+ fi
+
+ echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..."
+
+ SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`"
+ SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`"
+
+ # Check source code size
+ if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then
+ echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "Size match."
+ fi
+
+ # Check source code integrity
+ for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ if [ $ALGO = "rmd160" ]; then
+ ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
+ else
+ ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`"
+ fi
+ ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`"
+ ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }')
+ if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then
+ echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "$ALGO match."
+ fi
+ done
+
+ done
+
+else
+ exit $ERROR_MANIFEST
+fi
+
+# Untar
+cd "$PKG_WORK"
+tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
+PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
+cd "$PKG_SRC"
+
+# Patch source
+patches=" [[PATCH URLS]]
+ $PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff
+ $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff"
+for patch in $patches; do
+ patch="`basename $patch`"
+ if [ -f "$CWD/$patch" ]; then
+ patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch" ]; then
+ patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/$patch.gz" ]; then
+ gzip -dc "$CWD/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch.gz" ]; then
+ gzip -dc "$CWD/patches/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$SRC_DIR/$patch" ]; then
+ if [ "`basename $patch .gz`" != "$patch" ]; then
+ gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ elif [ "`basename $patch .bz2`" != "$patch" ]; then
+ bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ else
+ patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH
+ fi
+ fi
+done
+
+# Configure
+perl Makefile.PL || exit $ERROR_CONF
+
+# Compile
+make $NUMJOBS || exit $ERROR_MAKE
+
+# Install
+make install DESTDIR="$PKG" || exit $ERROR_INSTALL
+
+# Fix .packlist
+string="`echo $PKG | sed -e 's/\//\\\\\//g'`"
+for file in `find $PKG -name .packlist`; do
+ sed -e "s/^$string//g" $file > $file.tmp
+ mv $file.tmp $file
+done
+
+# Strip binaries
+( cd "$PKG"
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Install documentation
+DOCS="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*"
+mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
+for doc in $DOCS; do
+ if [ -f "$doc" ]; then
+ cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
+ fi
+done
+
+# Add package description (slack-desc)
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+cat << EODESC > "$PKG/install/slack-desc"
+# 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---------------------------------------------|
+perl-cgi-session: perl-cgi-session
+perl-cgi-session:
+perl-cgi-session: Persistent session data in CGI applications.
+perl-cgi-session:
+perl-cgi-session:
+perl-cgi-session:
+perl-cgi-session:
+perl-cgi-session:
+perl-cgi-session:
+perl-cgi-session:
+perl-cgi-session:
+EODESC
+
+# Build the package
+cd "$PKG"
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+
+# Delete source and build directories if requested
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
+ rm -rf "$PKG_WORK" "$PKG"
+fi
diff --git a/dev/perl/perl-html-parser/Manifest b/dev/perl/perl-html-parser/Manifest
new file mode 100644
index 00000000..862a5d87
--- /dev/null
+++ b/dev/perl/perl-html-parser/Manifest
@@ -0,0 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST HTML-Parser-3.62.tar.gz 88412 MD5 2aad75367af5173514f564122ba028c7 RMD160 b09ad13ac94e109a8504b18bac1a959cf0240381 SHA1 b8d6f98cec39a42e188af241c705fc2f49b3090e SHA256 1d4816e0b875f2f8410118062a5db84424a3c51de7c540f1876a77c24a86f64a SHA512 abde99858a0798776b933c9239da89ebe333dc0ebc8ef9fe56326dbb0c227e1416619f31d9c8416af83dde1cc46a225d0a9a512d345e3adf5f7104fdf0cb3d60
+MKBUILD perl-html-parser.mkbuild 2343 MD5 ec5a12991ba218650cf8dad0238a62f6 RMD160 0afbb7eca0e611f2d3511e3f2c12ba128a451a59 SHA1 6d210146b5b524141f5175bfb146eb37373a097f SHA256 a711e770a689b44a59f3859ec6bb3858e9613ee608c8cb7b5b4a9c95a623b268 SHA512 d9bd057a3e013112a74c68bdcb83f818235eb0cbfd201cf6b8a0bd6971edab9caa66d232c5be0f5775dd1d56c4f6377d748de7c6986102511423213594d3b186
+SLACKBUILD perl-html-parser.SlackBuild 7030 MD5 7cf4476b68984c6704ec68e0c5ce7a90 RMD160 ab483b94719d907d6ebe180b696071897cd98910 SHA1 0d7d19325b44ac50f98b1a48f40697a55e05cfb9 SHA256 9fc0d20779610a3f97b866f4f44c3de4798b351e2bc25b0458d17083e9d63285 SHA512 3faa15b3f83a16811ffd6e608cb628592d97359953b781c2ef4b81f04bda17fc1197a9e8988e22e4dff3733f5919e172239fcfd26e73f12cbda6d022e4c4e775
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBCAAGBQJKihSZAAoJEEHL93ESzgeiu9gP/R//SYnfUZdc4KLPQCXePiW8
+UJhG9Isyovk84ze4+TwKaU/B/sHDh5gjrTyX1pDbmSnxvTpr/Q+/2mRlI8mSdxcS
+y6Ww1/z+UBfxmsyTodGmowoLi6UgyPRaV8sbEN85ev+0fNYMTHTmTN5tl7AXOooR
+m+jJdOYd35wN6g3VhIqtBQ+D6O/X66FHJ/4Qoan26PVqlXdqgxDD+Pmtl9gkNjOn
+9AvOtKr0K1JtJQ1GfaofMcdUZ74uRBHdqhn3e+L8AQyI1G5+UtFkZUg9ydesDhO4
+g5cvL6TGY6e6RwBQjVbL/bIE4tOn7y94pSxOPbeDM+gAIJFcPrqV2iwUfCwyjK//
+Q+xVj9o21rj5qvKcNuqmNYUPDwVjFecVuEJ61+Fc8Up4SPieIwlv9EwVhJMnjR2g
+Pk5F8QezHAFin3pPYNCwseSPhpcVQ7MTVzpbqkyxuymt42HegQyqfRJlXRgN1nsl
+V/ovGzrV5Vc8NT+wgi0Q1b1w7/nSnA71jpMX9zhfPWx8KGKK//ZQ1qBnXsBQrYUD
+ELsNJCE58ErUyZVijyWh8NJXU3z3AeZj7QZSVxlNPIeQPvQUx771EHHzumZ0roeg
+tcsNiyhrTBfZ56ZWZbt1DtUznJfbpo8DKFH2ePAXPjN1SpbCIHpMfbfZw4INpBGs
+5J+djTgQ9FR/6l7N8Uyl
+=01iV
+-----END PGP SIGNATURE-----
diff --git a/dev/perl/perl-html-parser/perl-html-parser.SlackBuild b/dev/perl/perl-html-parser/perl-html-parser.SlackBuild
index eeffdc47..bbb48a2a 100755
--- a/dev/perl/perl-html-parser/perl-html-parser.SlackBuild
+++ b/dev/perl/perl-html-parser/perl-html-parser.SlackBuild
@@ -16,7 +16,8 @@
#
# slackbuild for perl-html-parser, by Silvio Rhatto
# requires:
-# tested: perl-html-parser-3.56
+# tested: perl-html-parser-3.62
+# model: perl.mkSlackBuild $Rev: 796 $
#
# Look for slackbuildrc
@@ -31,13 +32,14 @@ CWD="$(pwd)"
SRC_NAME="HTML-Parser"
PKG_NAME="perl-html-parser"
ARCH=${ARCH:=i486}
-SRC_VERSION=${VERSION:=3.56}
+SRC_VERSION=${VERSION:=3.62}
PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
BUILD=${BUILD:=1rha}
SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
TMP=${TMP:=/tmp}
PKG=${PKG:=$TMP/package-$PKG_NAME}
REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="dev/perl/perl-html-parser"}
PREFIX=${PREFIX:=/usr}
PKG_WORK="$TMP/$SRC_NAME"
CONF_OPTIONS=${CONF_OPTIONS:=""}
@@ -64,6 +66,7 @@ ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
# Clean up any leftovers of previous builds
rm -rf "$PKG_SRC" 2> /dev/null
@@ -83,6 +86,72 @@ if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then
wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
fi
+# Check Manifest file
+if [ -e "$CWD/Manifest" ]; then
+
+ # Manifest signature checking
+ if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then
+ echo "Checking Manifest signature..."
+ gpg --verify $CWD/Manifest
+ if [ "$?" != "0" ]; then
+ exit $ERROR_MANIFEST
+ fi
+ fi
+
+ MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
+
+ for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
+
+ MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`"
+ MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`"
+ MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`"
+
+ if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then
+ MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE"
+ else
+ MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`"
+ fi
+
+ if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then
+ continue
+ fi
+
+ echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..."
+
+ SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`"
+ SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`"
+
+ # Check source code size
+ if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then
+ echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "Size match."
+ fi
+
+ # Check source code integrity
+ for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ if [ $ALGO = "rmd160" ]; then
+ ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
+ else
+ ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`"
+ fi
+ ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`"
+ ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }')
+ if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then
+ echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "$ALGO match."
+ fi
+ done
+
+ done
+
+else
+ exit $ERROR_MANIFEST
+fi
+
# Untar
cd "$PKG_WORK"
tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
@@ -148,9 +217,10 @@ EODESC
# Build the package
cd "$PKG"
-makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
# Delete source and build directories if requested
-if [ "$CLEANUP" == "yes" ]; then
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
rm -rf "$PKG_WORK" "$PKG"
fi
diff --git a/dev/perl/perl-html-scrubber/Manifest b/dev/perl/perl-html-scrubber/Manifest
new file mode 100644
index 00000000..9bc95d5b
--- /dev/null
+++ b/dev/perl/perl-html-scrubber/Manifest
@@ -0,0 +1,24 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST HTML-Scrubber-0.08.tar.gz 17073 MD5 abadf246e528f3e2d31717ef8a1d90f2 RMD160 91d54ae263f8ab4d6b4ba5a405abdc0e9e569c15 SHA1 e2ef76894bea593b770caac03c613947d9e0a3b7 SHA256 02ca2852db866bfdaccfc173346c7521c59703aace0fbd528b520b7f8cfc6575 SHA512 dbb365293e5cceba53bfd15536b0f031508b9d662bfac6d96289aab79aa7051309ba4e65070cd93c5a53705c7ce57f732d0e0c2b6c4420feaf12407c474dd7ef
+MKBUILD perl-html-scrubber.mkbuild 2468 MD5 bcf94b1114409c1b4fc1357ec351a574 RMD160 52275ed464fb516557a3d52eaf939e60d5266c2b SHA1 128c34128faeb9323ff8f1170d4973347c646621 SHA256 36437bd47befb06eea2443313704513d0d85adf7121a9cf48ca7aac765e5c985 SHA512 b0832856d729e4e64d19ae2cbb98417ca695180a83de0b6eb6a2a8e5c8d7cf1ba8620464039d0611f120120a94e011866f68e609d2b3763767f139274d6b4dbe
+SLACK-REQUIRED slack-required 94 MD5 52580ad1740f90a029f0203c60ac6f35 RMD160 1cdd5d50de914c7c4282573d5e5f6aa35a8d2a80 SHA1 66486f5ca6bfc934177b5d12f004b581722e88f7 SHA256 7f075c8f45dcad357d74f36d37ea20ed0419743cc4044ff91e068b0de743c701 SHA512 1b2f6cef466a01546ea750f8738788ed4e2987ddde9b379f5b252ec2ef1676aa19f365dfd25bdc8be569c16196458145998697a49dfc22392104f9cf7ad36113
+SLACKBUILD perl-html-scrubber.SlackBuild 7107 MD5 13c32af0538b7ad45e51eba1a853c4e5 RMD160 9b92c9b5de4d6b5cfde90539192c596e52d7b156 SHA1 23f0b7ff5a5be3832bb2cbba1a83c28a2cd2603b SHA256 909dc1e0f4a3dc2bbd026839ef36420c01a3cf13136948fc6d696722709370dd SHA512 da57dbe8d35f4fd11a7793da774a3de9e11b13f7920ea35959cba168d1373d31335c11a7941cf836257128fbeca2b875ca289e70624647bed5d1630c6b1d5cd2
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBCAAGBQJKihRFAAoJEEHL93ESzgei0+UP/RBE5z6M7JsBDDiT1incd4W9
+38ugTHBhrYWQaL+FjNVgfaZcQDdmy6VII/neyGTXM7U3CDXtL4qvQP1vz6zDfGEQ
+SzjYd5u9q1ZyahoeJzzryP9zHg63SrFAaZsVDFSi5o1xxrQYn80I66d4nKeK66ll
+rCNPzlfzM/30PvOrfvAEWaSyqvR0BVWHjN6shv3ukbDfbmO1mByBwn/C+8REJUq0
+HRZebiTLbCy1FC97AL+ejdaM0j0M3DYtFOzx3euz1xrQdO+LWfYCTdqMWOk9cDWp
+hL2Pl6wSHNg6YRFDOBTJimqDaKc0WDRz5xrsbHrb/X/UjEHHN7de5lJxdj3yU7Vk
+vdAvrLeSn2B254SWvmFuVnKmbJzAflqBAnVsLsWt+zgeH77y32TLXuaroWSAnXA1
+qM5+J6t4gh2iygJwTSxTS8Zroun2tvK6FVWAZEvVgpXsTftctbGdjIXReE8X2drn
+5bFuQ2GPaGbyGKj7EDLWNEvQTqwVr6SKv2wsVLY77dEyt69v2H1AHYd401j3jfaa
+itkNWu+TIc9CzjAmssk1c8y9SiZTQ421a/YWEdfVT0JCA/U3zWKkXFCXGpGrY+IH
+8ngwqIypl/sja4JuASDzIlPuBV+/iD9k/sf9h+SSeAc342MBDNvceotBYnvdStMg
+jU9OD0Uo+vfp8p+ELoFJ
+=e0DF
+-----END PGP SIGNATURE-----
diff --git a/dev/perl/perl-html-scrubber/perl-html-scrubber.SlackBuild b/dev/perl/perl-html-scrubber/perl-html-scrubber.SlackBuild
new file mode 100644
index 00000000..fb3e93b4
--- /dev/null
+++ b/dev/perl/perl-html-scrubber/perl-html-scrubber.SlackBuild
@@ -0,0 +1,226 @@
+#!/bin/bash
+#
+# perl-html-scrubber.SlackBuild is free software; you can redistribute
+# it and/or modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the License,
+# or any later version.
+#
+# perl-html-scrubber.SlackBuild is distributed in the hope that it will
+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# slackbuild for perl-html-scrubber, by Silvio Rhatto
+# requires: perl-html-parser
+# tested: perl-html-scrubber-0.08
+# model: perl.mkSlackBuild $Rev: 796 $
+#
+
+# Look for slackbuildrc
+if [ -f ~/.slackbuildrc ]; then
+ source ~/.slackbuildrc
+elif [ -f /etc/slackbuildrc ]; then
+ source /etc/slackbuildrc
+fi
+
+# Set variables
+CWD="$(pwd)"
+SRC_NAME="HTML-Scrubber"
+PKG_NAME="perl-html-scrubber"
+ARCH=${ARCH:=i486}
+SRC_VERSION=${VERSION:=0.08}
+PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
+BUILD=${BUILD:=1rha}
+SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
+TMP=${TMP:=/tmp}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
+REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="dev/perl/perl-html-scrubber"}
+PREFIX=${PREFIX:=/usr}
+PKG_WORK="$TMP/$SRC_NAME"
+CONF_OPTIONS=${CONF_OPTIONS:=""}
+NUMJOBS=${NUMJOBS:=""}
+
+# Set system libraries' path and optmization flags based on $ARCH
+LIBDIR="$PREFIX/lib"
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIR="$PREFIX/lib64"
+fi
+
+# Set error codes (used by createpkg)
+ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
+ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
+ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
+ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
+
+# Clean up any leftovers of previous builds
+rm -rf "$PKG_SRC" 2> /dev/null
+rm -rf "$PKG" 2> /dev/null
+
+# Create directories if necessary
+mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR
+mkdir -p "$PKG" || exit $ERROR_MKDIR
+mkdir -p "$REPOS" || exit $ERROR_MKDIR
+mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
+
+# Dowload source if necessary
+SRC="$SRC_NAME-$VERSION.tar.gz"
+URL="http://search.cpan.org/CPAN/authors/id/P/PO/PODMASTER/$SRC"
+
+if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then
+ wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
+fi
+
+# Check Manifest file
+if [ -e "$CWD/Manifest" ]; then
+
+ # Manifest signature checking
+ if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then
+ echo "Checking Manifest signature..."
+ gpg --verify $CWD/Manifest
+ if [ "$?" != "0" ]; then
+ exit $ERROR_MANIFEST
+ fi
+ fi
+
+ MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
+
+ for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
+
+ MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`"
+ MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`"
+ MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`"
+
+ if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then
+ MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE"
+ else
+ MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`"
+ fi
+
+ if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then
+ continue
+ fi
+
+ echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..."
+
+ SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`"
+ SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`"
+
+ # Check source code size
+ if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then
+ echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "Size match."
+ fi
+
+ # Check source code integrity
+ for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ if [ $ALGO = "rmd160" ]; then
+ ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
+ else
+ ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`"
+ fi
+ ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`"
+ ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }')
+ if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then
+ echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "$ALGO match."
+ fi
+ done
+
+ done
+
+else
+ exit $ERROR_MANIFEST
+fi
+
+# Untar
+cd "$PKG_WORK"
+tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
+PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
+cd "$PKG_SRC"
+
+# Configure
+perl Makefile.PL || exit $ERROR_CONF
+
+# Compile
+make $NUMJOBS || exit $ERROR_MAKE
+
+# Install
+make install DESTDIR="$PKG" || exit $ERROR_INSTALL
+
+# Fix .packlist
+string="`echo $PKG | sed -e 's/\//\\\\\//g'`"
+for file in `find $PKG -name .packlist`; do
+ sed -e "s/^$string//g" $file > $file.tmp
+ mv $file.tmp $file
+done
+
+# Strip binaries
+( cd "$PKG"
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Install documentation
+DOCS="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*"
+mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
+for doc in $DOCS; do
+ if [ -f "$doc" ]; then
+ cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
+ fi
+done
+
+# Add package description (slack-desc)
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+cat << EODESC > "$PKG/install/slack-desc"
+# 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-------------------------------------------|
+perl-html-scrubber: perl-html-scrubber
+perl-html-scrubber:
+perl-html-scrubber: Perl extension for scrubbing/sanitizing html.
+perl-html-scrubber:
+perl-html-scrubber:
+perl-html-scrubber:
+perl-html-scrubber:
+perl-html-scrubber:
+perl-html-scrubber:
+perl-html-scrubber:
+perl-html-scrubber:
+EODESC
+
+# Build the package
+cd "$PKG"
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+
+# Delete source and build directories if requested
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
+ rm -rf "$PKG_WORK" "$PKG"
+fi
diff --git a/dev/perl/perl-html-scrubber/slack-required b/dev/perl/perl-html-scrubber/slack-required
new file mode 100644
index 00000000..2d79d91f
--- /dev/null
+++ b/dev/perl/perl-html-scrubber/slack-required
@@ -0,0 +1,4 @@
+# Dependency list to HTML-Scrubber
+#
+# dependency [condition] [version]]
+perl-html-parser
diff --git a/dev/perl/perl-mail-sendmail/Manifest b/dev/perl/perl-mail-sendmail/Manifest
new file mode 100644
index 00000000..248ae7f8
--- /dev/null
+++ b/dev/perl/perl-mail-sendmail/Manifest
@@ -0,0 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST Mail-Sendmail-0.79.tar.gz 16245 MD5 038f261afd091d8fad347d6c66d2833d RMD160 6f593aecbbffed43c592e58d8dd2c342d70c8e93 SHA1 606d1dc108fad8ec962062b8dbdee0f7dfa82329 SHA256 8a5eb39d3b9a3a4219c6d6051328c62bd51e9b53723ee5b42cd66e8672e681b9 SHA512 5a39efa2f059e97b8da2d3e5f08fc30f7ac990dc7fe4f8df9580314e11c111884942335ab64af5dc4082d3a807381a8db281122237471888ecb92da6ee874e85
+MKBUILD perl-mail-sendmail.mkbuild 2403 MD5 e0ab29abdf6ff97f65c58574dbdc6927 RMD160 04db072a2b68680c2fcaa2ffb65affba6b8278c9 SHA1 e36207d1b140d21267562aec14e1d894c8fd9005 SHA256 58a28b4b8ad4d351ed7542d58a22a9a7f2da9f33abaafe9a9ceaa4fd5b3ce972 SHA512 26f67755975c9bae7f351dce35de190b5ea93116e39ca12a2345e2fed6019e1cfa2db1d72e86a414eca08038d4d636582abedb2137df39c63438acf8598f804f
+SLACKBUILD perl-mail-sendmail.SlackBuild 8058 MD5 6c3f58b92246c49c0bd260f90906ea16 RMD160 8db950e3e62c92ec55f5961c24010154514c8203 SHA1 f54daa061421e35c6b540ae80c18523ddd368c1b SHA256 615034e4deeb3671f84c25de7d6eebed4afe08699f128ab7d7c7030e63be3789 SHA512 78d72f21dc26d2d9459cdbefa5eb4b40b02c2e21ce0fcc63caab4271d738339f8d651fbb179b5ea37417950904f2d9b3e8e5152b8c4e5aad2b3a6db096324286
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBCAAGBQJKihkMAAoJEEHL93ESzgeicGgP/3UlZv/7+SuWYGj1gabsNEBG
+cDuMkP/HllEAJ9xImyVcYQMJhhp1hlpMk81EZ+/Ni5EK2RxByZdMKkIGsvUg9k5n
+RrmZGIEgHQTrp+1Di1SOgBU2paEPesqlr5CiSSBb6HPKNUfY85eVdnhy2Q1kVedu
+FJ7Fkc7MJIQenIjp+jjVJvskt5Ajo5ealpk5oEK5WjmMDEkJ4MA19jGXAB0fyK4f
+afOjjZrgxi6ohgdH4gcfAOUeInrcBw7NsWE+Q7/E8+2Fu6P4L21fNvCPJ2Ixey+r
+SYnjA91SGqfi9YdQdLiDrgDbH7M7DWqLsIlUmKtiMBgObMiqAoSpco5G860v6eA0
+KPwwp0Kp5PMnHNHIxWecI36c8XvapOwLoizpd+V5jRMdNuPSEaUjuLs3tuqP7B63
+5yqgQclvO7/LogtWkc42EWxZRngMs9+h5zHHD1oSYxUGmMBQkPFKYegqWusccU+n
+MsH9u/c1SfebRkRaU1MsppB+/myJo2RiR8J91ZKejh4EHVn7c2zESUckIiEdp+Fg
+EdLkAXrAsLhX4TzKY3HgflikTy3SBsJd2gn7IcwMW+jNTVRw5Q6tGudRkRsso4lY
+00hNICv+Oe6671vpQGD2LoPdsIIzlYmB69DQjWPTTATtj1MC9PtQKr6FxaLBSBZk
+EAevNC+A2VkTRZtXwkt/
+=rO/Z
+-----END PGP SIGNATURE-----
diff --git a/dev/perl/perl-mail-sendmail/perl-mail-sendmail.SlackBuild b/dev/perl/perl-mail-sendmail/perl-mail-sendmail.SlackBuild
new file mode 100644
index 00000000..af686576
--- /dev/null
+++ b/dev/perl/perl-mail-sendmail/perl-mail-sendmail.SlackBuild
@@ -0,0 +1,251 @@
+#!/bin/bash
+#
+# perl-mail-sendmail.SlackBuild is free software; you can redistribute
+# it and/or modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the License,
+# or any later version.
+#
+# perl-mail-sendmail.SlackBuild is distributed in the hope that it will
+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# slackbuild for perl-mail-sendmail, by Silvio Rhatto
+# requires:
+# tested: perl-mail-sendmail-0.79
+# model: perl.mkSlackBuild $Rev: 796 $
+#
+
+# Look for slackbuildrc
+if [ -f ~/.slackbuildrc ]; then
+ source ~/.slackbuildrc
+elif [ -f /etc/slackbuildrc ]; then
+ source /etc/slackbuildrc
+fi
+
+# Set variables
+CWD="$(pwd)"
+SRC_NAME="Mail-Sendmail"
+PKG_NAME="perl-mail-sendmail"
+ARCH=${ARCH:=i486}
+SRC_VERSION=${VERSION:=0.79}
+PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
+BUILD=${BUILD:=1rha}
+SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
+TMP=${TMP:=/tmp}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
+REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="dev/perl/perl-mail-sendmail"}
+PREFIX=${PREFIX:=/usr}
+PKG_WORK="$TMP/$SRC_NAME"
+CONF_OPTIONS=${CONF_OPTIONS:=""}
+NUMJOBS=${NUMJOBS:=""}
+
+# Set system libraries' path and optmization flags based on $ARCH
+LIBDIR="$PREFIX/lib"
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIR="$PREFIX/lib64"
+fi
+
+# Set error codes (used by createpkg)
+ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
+ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
+ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
+ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
+
+# Clean up any leftovers of previous builds
+rm -rf "$PKG_SRC" 2> /dev/null
+rm -rf "$PKG" 2> /dev/null
+
+# Create directories if necessary
+mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR
+mkdir -p "$PKG" || exit $ERROR_MKDIR
+mkdir -p "$REPOS" || exit $ERROR_MKDIR
+mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
+
+# Dowload source if necessary
+SRC="$SRC_NAME-$VERSION.tar.gz"
+URL="http://search.cpan.org/CPAN/authors/id/M/MI/MIVKOVIC/$SRC"
+
+if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then
+ wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
+fi
+
+# Check Manifest file
+if [ -e "$CWD/Manifest" ]; then
+
+ # Manifest signature checking
+ if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then
+ echo "Checking Manifest signature..."
+ gpg --verify $CWD/Manifest
+ if [ "$?" != "0" ]; then
+ exit $ERROR_MANIFEST
+ fi
+ fi
+
+ MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
+
+ for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
+
+ MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`"
+ MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`"
+ MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`"
+
+ if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then
+ MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE"
+ else
+ MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`"
+ fi
+
+ if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then
+ continue
+ fi
+
+ echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..."
+
+ SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`"
+ SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`"
+
+ # Check source code size
+ if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then
+ echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "Size match."
+ fi
+
+ # Check source code integrity
+ for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ if [ $ALGO = "rmd160" ]; then
+ ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
+ else
+ ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`"
+ fi
+ ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`"
+ ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }')
+ if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then
+ echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "$ALGO match."
+ fi
+ done
+
+ done
+
+else
+ exit $ERROR_MANIFEST
+fi
+
+# Untar
+cd "$PKG_WORK"
+tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
+PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
+cd "$PKG_SRC"
+
+# Patch source
+patches=" [[PATCH URLS]]
+ $PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff
+ $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff"
+for patch in $patches; do
+ patch="`basename $patch`"
+ if [ -f "$CWD/$patch" ]; then
+ patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch" ]; then
+ patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/$patch.gz" ]; then
+ gzip -dc "$CWD/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch.gz" ]; then
+ gzip -dc "$CWD/patches/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$SRC_DIR/$patch" ]; then
+ if [ "`basename $patch .gz`" != "$patch" ]; then
+ gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ elif [ "`basename $patch .bz2`" != "$patch" ]; then
+ bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ else
+ patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH
+ fi
+ fi
+done
+
+# Configure
+perl Makefile.PL || exit $ERROR_CONF
+
+# Compile
+make $NUMJOBS || exit $ERROR_MAKE
+
+# Install
+make install DESTDIR="$PKG" || exit $ERROR_INSTALL
+
+# Fix .packlist
+string="`echo $PKG | sed -e 's/\//\\\\\//g'`"
+for file in `find $PKG -name .packlist`; do
+ sed -e "s/^$string//g" $file > $file.tmp
+ mv $file.tmp $file
+done
+
+# Strip binaries
+( cd "$PKG"
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Install documentation
+DOCS="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*"
+mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
+for doc in $DOCS; do
+ if [ -f "$doc" ]; then
+ cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
+ fi
+done
+
+# Add package description (slack-desc)
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+cat << EODESC > "$PKG/install/slack-desc"
+# 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-------------------------------------------|
+perl-mail-sendmail: perl-mail-sendmail
+perl-mail-sendmail:
+perl-mail-sendmail: Simple platform independent mailer.
+perl-mail-sendmail:
+perl-mail-sendmail:
+perl-mail-sendmail:
+perl-mail-sendmail:
+perl-mail-sendmail:
+perl-mail-sendmail:
+perl-mail-sendmail:
+perl-mail-sendmail:
+EODESC
+
+# Build the package
+cd "$PKG"
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+
+# Delete source and build directories if requested
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
+ rm -rf "$PKG_WORK" "$PKG"
+fi
diff --git a/dev/perl/perl-text-markdown/Manifest b/dev/perl/perl-text-markdown/Manifest
new file mode 100644
index 00000000..17ce166c
--- /dev/null
+++ b/dev/perl/perl-text-markdown/Manifest
@@ -0,0 +1,24 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST Text-Markdown-1.0.24.tar.gz 143401 MD5 471d61df7fdf66a791d66ad37074bd7b RMD160 9c5bf5eca4ac03774d004a56a3b0ee620749c6c5 SHA1 0cdefc25e84d6bdce1cf362200a4bd5a04509a8f SHA256 5f5be987f39960f4fdd1d92d305a61df73870349754469910733cacd0132d0de SHA512 e83c7b151670815c5fddaec1f8c0f388f669949fe7a91b0a759683dd5d8dde43bdd1e907b46e1fce086414f73a5c43dbc8e66ecb3dbe752777466ccc0f9923bd
+MKBUILD perl-text-markdown.mkbuild 2406 MD5 d81f4a6ea5f9af8b6ddfd9f6518dc1d2 RMD160 d25c5cf52662324910198fdb18c53af0fa8134a9 SHA1 ea9e762aac176c0a55bf56ee4b14aa7cf0926810 SHA256 63bee4050831e5837416253798f673f6e950af0a8891b5867635934d25f5a56f SHA512 cb86f6c2e437be6c03bcfe972c16b6a02b2bf1c8d1c2416420e96091f2acfc9fd1bdf7e25d62040f5fa32f0c694191ae51582d4aa61f68704a37a23bd96af13f
+PATCH perl-text-markdown.diff 496 MD5 e44d5fb0e533186f6c2307ca8efa5982 RMD160 1e6d72808c3d16113fa6355ab779dcec1d655700 SHA1 ed3bf0ee8caefbbada960d6a24dcb26ad893fb4a SHA256 bc05f535c9f53fa6e17a4a2369b1b52330fe08b30e1c33f869ebc54bdc84e6bb SHA512 53849b941d21a3ab168d2e2b04ef7a0e6a40305b6eb84e0b123f378f4fe434ae6828468375a3da6aee3de2c45c91e652c079aa5ff4724b39259f17991373cd98
+SLACKBUILD perl-text-markdown.SlackBuild 8063 MD5 93e7d328b2cf8002200ef34d9da92ea3 RMD160 10aeb133bcb27f3adca493f613dbe95d46b63fbd SHA1 65b4a5c7dd6a1a5b394441e4b2e0936436ca26dd SHA256 7221731a7d0410a733babf6e023e7df70b679766920b6cccbba028c849ce712c SHA512 cf61f7fc2652bb93e2d5a3311648a63db3f17d8d9ff2c6fe6b4ded43655d72f4b59610f592f90b6530c88b236b6a2391085628b117049de303c17d8538f8fcaf
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBCAAGBQJKihOZAAoJEEHL93ESzgeiVm0QALuISlE7iqHL7XI7WDvE0hOD
+ppk8YCmEy+hEzGTF1FLksBS0knp4MJjeX6fR+EN0H8YUs5tImlpjowhSMept8akc
+lC0JLkIGaAinelLirZCb/yBlBVvKY4kBRWS/7rJafrXLbTieBBHtF+DGvaO+9k1e
+aVgHkqKgeTibmFoMY/iDdnsGJpmCS87StcsyqVnKfldTSr7CN0urMpN3q7GP3Fwc
+T8stLwkDbed3oso9fXEvNvbkmj3e3EelqNl/c551GVV4ykwIJqEdI20eLASbb9+W
+nOPGZ4d6WL/B4rUG9gvktLbctNnhz7LtMaQT+XSv7P1mG/TSAm9ZYiwS7ifYhbHl
+xz7tz+IjlaHRNqTcQP8LCmxr5EiH8QNuCgEMAAUCH94FV2mlN0nqqvz1Y1TvamtJ
+4IUsGM4ooiu43Ji7z2IKAQOgwEQjMX5XG1h6QGzUwvdXQyJQsj3DiSb4VoGP5yBw
+JHEjbnokNLwwSVEvvbxR1l6HT18QnJwvk7Fk9lq5r9frRziM3krdWiB1MyClZ6Is
+DguMlc2WTtplPMjdQDj+YYzX60rVuWHbo/M8wP4ldsKhBLFlEpVkM87iMBN5Xqvt
+7bgrcHbgOflZI4wjzvnIOB2LnvIFdp4hAKgqrmSX804ddvBWab+t4cIattTzD7fE
+02q9AIJrG3ZrLJtKlU6B
+=bu3+
+-----END PGP SIGNATURE-----
diff --git a/dev/perl/perl-text-markdown/perl-text-markdown.SlackBuild b/dev/perl/perl-text-markdown/perl-text-markdown.SlackBuild
new file mode 100644
index 00000000..1546e0e9
--- /dev/null
+++ b/dev/perl/perl-text-markdown/perl-text-markdown.SlackBuild
@@ -0,0 +1,251 @@
+#!/bin/bash
+#
+# perl-text-markdown.SlackBuild is free software; you can redistribute
+# it and/or modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the License,
+# or any later version.
+#
+# perl-text-markdown.SlackBuild is distributed in the hope that it will
+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# slackbuild for perl-text-markdown, by Silvio Rhatto
+# requires:
+# tested: perl-text-markdown-1.0.24
+# model: perl.mkSlackBuild $Rev: 796 $
+#
+
+# Look for slackbuildrc
+if [ -f ~/.slackbuildrc ]; then
+ source ~/.slackbuildrc
+elif [ -f /etc/slackbuildrc ]; then
+ source /etc/slackbuildrc
+fi
+
+# Set variables
+CWD="$(pwd)"
+SRC_NAME="Text-Markdown"
+PKG_NAME="perl-text-markdown"
+ARCH=${ARCH:=i486}
+SRC_VERSION=${VERSION:=1.0.24}
+PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
+BUILD=${BUILD:=1rha}
+SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
+TMP=${TMP:=/tmp}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
+REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="dev/perl/perl-text-markdown"}
+PREFIX=${PREFIX:=/usr}
+PKG_WORK="$TMP/$SRC_NAME"
+CONF_OPTIONS=${CONF_OPTIONS:=""}
+NUMJOBS=${NUMJOBS:=""}
+
+# Set system libraries' path and optmization flags based on $ARCH
+LIBDIR="$PREFIX/lib"
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIR="$PREFIX/lib64"
+fi
+
+# Set error codes (used by createpkg)
+ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
+ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
+ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
+ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
+
+# Clean up any leftovers of previous builds
+rm -rf "$PKG_SRC" 2> /dev/null
+rm -rf "$PKG" 2> /dev/null
+
+# Create directories if necessary
+mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR
+mkdir -p "$PKG" || exit $ERROR_MKDIR
+mkdir -p "$REPOS" || exit $ERROR_MKDIR
+mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
+
+# Dowload source if necessary
+SRC="$SRC_NAME-$VERSION.tar.gz"
+URL="http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/$SRC"
+
+if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then
+ wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
+fi
+
+# Check Manifest file
+if [ -e "$CWD/Manifest" ]; then
+
+ # Manifest signature checking
+ if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then
+ echo "Checking Manifest signature..."
+ gpg --verify $CWD/Manifest
+ if [ "$?" != "0" ]; then
+ exit $ERROR_MANIFEST
+ fi
+ fi
+
+ MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
+
+ for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
+
+ MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`"
+ MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`"
+ MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`"
+
+ if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then
+ MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE"
+ else
+ MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`"
+ fi
+
+ if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then
+ continue
+ fi
+
+ echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..."
+
+ SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`"
+ SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`"
+
+ # Check source code size
+ if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then
+ echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "Size match."
+ fi
+
+ # Check source code integrity
+ for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ if [ $ALGO = "rmd160" ]; then
+ ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
+ else
+ ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`"
+ fi
+ ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`"
+ ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }')
+ if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then
+ echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "$ALGO match."
+ fi
+ done
+
+ done
+
+else
+ exit $ERROR_MANIFEST
+fi
+
+# Untar
+cd "$PKG_WORK"
+tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
+PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
+cd "$PKG_SRC"
+
+# Patch source
+patches=" [[PATCH URLS]]
+ $PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff
+ $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff"
+for patch in $patches; do
+ patch="`basename $patch`"
+ if [ -f "$CWD/$patch" ]; then
+ patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch" ]; then
+ patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH
+ elif [ -f "$CWD/$patch.gz" ]; then
+ gzip -dc "$CWD/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch.gz" ]; then
+ gzip -dc "$CWD/patches/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
+ elif [ -f "$SRC_DIR/$patch" ]; then
+ if [ "`basename $patch .gz`" != "$patch" ]; then
+ gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ elif [ "`basename $patch .bz2`" != "$patch" ]; then
+ bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
+ else
+ patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH
+ fi
+ fi
+done
+
+# Configure
+perl Makefile.PL || exit $ERROR_CONF
+
+# Compile
+make $NUMJOBS || exit $ERROR_MAKE
+
+# Install
+make install DESTDIR="$PKG" || exit $ERROR_INSTALL
+
+# Fix .packlist
+string="`echo $PKG | sed -e 's/\//\\\\\//g'`"
+for file in `find $PKG -name .packlist`; do
+ sed -e "s/^$string//g" $file > $file.tmp
+ mv $file.tmp $file
+done
+
+# Strip binaries
+( cd "$PKG"
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Install documentation
+DOCS="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*"
+mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
+for doc in $DOCS; do
+ if [ -f "$doc" ]; then
+ cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
+ fi
+done
+
+# Add package description (slack-desc)
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+cat << EODESC > "$PKG/install/slack-desc"
+# 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-------------------------------------------|
+perl-text-markdown: perl-text-markdown
+perl-text-markdown:
+perl-text-markdown: Convert Markdown syntax to (X)HTML
+perl-text-markdown:
+perl-text-markdown:
+perl-text-markdown:
+perl-text-markdown:
+perl-text-markdown:
+perl-text-markdown:
+perl-text-markdown:
+perl-text-markdown:
+EODESC
+
+# Build the package
+cd "$PKG"
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+
+# Delete source and build directories if requested
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
+ rm -rf "$PKG_WORK" "$PKG"
+fi
diff --git a/dev/perl/perl-text-markdown/perl-text-markdown.diff b/dev/perl/perl-text-markdown/perl-text-markdown.diff
new file mode 100644
index 00000000..d031d1c4
--- /dev/null
+++ b/dev/perl/perl-text-markdown/perl-text-markdown.diff
@@ -0,0 +1,13 @@
+diff -Naur Text-Markdown-1.0.24.orig/Makefile.PL Text-Markdown-1.0.24/Makefile.PL
+--- Text-Markdown-1.0.24.orig/Makefile.PL 2008-10-23 15:30:29.000000000 -0200
++++ Text-Markdown-1.0.24/Makefile.PL 2009-08-17 23:34:47.000000000 -0300
+@@ -20,7 +20,7 @@
+ build_requires 'FindBin' => undef;
+
+ # Scripts I install
+-prompt_script('script/Markdown.pl');
+-prompt_script('script/MultiMarkdown.pl');
++#prompt_script('script/Markdown.pl');
++#prompt_script('script/MultiMarkdown.pl');
+
+ WriteAll;