Merge pull request #456 from chneukirchen/chris2

Many new templates
This commit is contained in:
Juan RP 2014-07-02 13:36:25 +02:00
commit d1b4871074
30 changed files with 2529 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# Template file for 'aspell-de'
pkgname=aspell-de
version=20030222
revision=1
noarch=yes
wrksrc="aspell6-de-${version}-1"
build_style=configure
hostmakedepends="which"
makedepends="aspell-devel"
short_desc="German dictionary for aspell"
homepage="http://aspell.net/"
license="GPL-2"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
distfiles="${GNU_SITE}/aspell/dict/de/aspell6-de-${version}-1.tar.bz2"
checksum=ba6c94e11bc2e0e6e43ce0f7822c5bba5ca5ac77129ef90c190b33632416e906

View File

@ -0,0 +1,12 @@
# Template file for 'autocutsel'
pkgname=autocutsel
version=0.10.0
revision=1
build_style=gnu-configure
makedepends="libXaw-devel"
short_desc="Synchronize the two copy/paste buffers used by X applications"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="https://github.com/sigmike/autocutsel"
distfiles="https://github.com/sigmike/autocutsel/releases/download/$version/autocutsel-$version.tar.gz"
checksum=a2376330aa1a65f36621595a5a4eb5c2cabc16854b69d66c285f11f89bd05e3f

19
srcpkgs/cloc/template Normal file
View File

@ -0,0 +1,19 @@
# Template file for 'cloc'
pkgname=cloc
version=1.60
revision=1
wrksrc=$pkgname
create_wrksrc=yes
noarch=yes
short_desc="Count Lines of Code"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://cloc.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname/v$version/$pkgname-$version.pl"
skip_extraction="$pkgname-$version.pl"
checksum=4aa870bef104fd2b8f03c667ef8be2cd671cdf59f46c72046c43ed14e222a05c
do_install() {
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.pl cloc
vinstall cloc 755 usr/bin
}

14
srcpkgs/dwdiff/template Normal file
View File

@ -0,0 +1,14 @@
# Template file for 'dwdiff'
pkgname=dwdiff
version=2.0.9
revision=1
build_style=configure
make_install_args="prefix=/usr"
makedepends="which icu-devel"
depends="diffutils"
short_desc="Word-level diff(1)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3"
homepage="http://os.ghalkes.nl/dwdiff.html"
distfiles="http://os.ghalkes.nl/dist/$pkgname-$version.tgz"
checksum=c1c9217825ad3fac9936129cc26b73fa5479fb079e5c34522fc7066e74e31ef8

11
srcpkgs/fatrace/template Normal file
View File

@ -0,0 +1,11 @@
# Template file for 'fatrace'
pkgname=fatrace
version=0.6
revision=1
build_style=gnu-makefile
short_desc="Report system wide file access events"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3"
homepage="http://launchpad.net/fatrace"
distfiles="http://launchpad.net/fatrace/trunk/$version/+download/$pkgname-$version.tar.bz2"
checksum=cd1cdd86772c2c49e20bf235c5e5ac5c7a1bd7aeaf7a50d708334c69cb6f9982

19
srcpkgs/fdm/template Normal file
View File

@ -0,0 +1,19 @@
# Template file for 'fdm'
pkgname=fdm
version=1.7
revision=1
build_style=configure
hostmakedepends="bison"
makedepends="openssl-devel tdb-devel"
make_install_args="PREFIX=/usr MANDIR=/usr/share/man"
short_desc="Program to fetch and deliver mail"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://fdm.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname/$pkgname-$version/$pkgname-$version.tar.gz"
checksum=484474094f124ce438c89dfab05519fe7b3aa8c8346d00f790a512ab950cef2a
post_install() {
vmkdir usr/share/doc/${pkgname}
cp -r examples ${DESTDIR}/usr/share/doc/${pkgname}
}

12
srcpkgs/lzop/template Normal file
View File

@ -0,0 +1,12 @@
# Template file for 'lzop'
pkgname=lzop
version=1.03
revision=1
build_style=gnu-configure
makedepends="lzo-devel"
short_desc="file compressor using lzo"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://www.lzop.org/"
distfiles="http://www.lzop.org/download/$pkgname-$version.tar.gz"
checksum=c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9

13
srcpkgs/mairix/template Normal file
View File

@ -0,0 +1,13 @@
# Template file for 'mairix'
pkgname=mairix
version=0.23
revision=1
build_style=configure
configure_args="--prefix=/usr"
makedepends="flex bison bzip2-devel zlib-devel"
short_desc="A program for indexing and searching emails"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://www.rpcurnow.force9.co.uk/mairix/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=804e235b183c3350071a28cdda8eb465bcf447092a8206f40486191875bdf2fb

View File

@ -0,0 +1,15 @@
DEFAULT_TARGET = nonmerge
NETPBMLIBTYPE=unixshared
NETPBMLIBSUFFIX=so
STATICLIB_TOO=N
CFLAGS = -O3 -ffast-math -pedantic -fno-common -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit -Wwrite-strings -Wmissing-prototypes -Wundef -Wno-unknown-pragmas
CFLAGS_MERGE = -Wno-missing-declarations -Wno-missing-prototypes
LDRELOC = ld --reloc
LINKER_CAN_DO_EXPLICIT_LIBRARY=Y
LINKERISCOMPILER = N
CFLAGS_SHLIB += -fPIC
TIFFLIB = libtiff.so
JPEGLIB = libjpeg.so
ZLIB = libz.so
NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/
WANT_SSE = Y

View File

@ -0,0 +1,16 @@
--- converter/other/pstopnm.c.CAN-2005-2471 2005-08-15 02:39:46.000000000 +0200
+++ converter/other/pstopnm.c 2005-08-16 15:38:15.000000000 +0200
@@ -711,11 +711,11 @@
ghostscriptProg, arg0,
deviceopt, outfileopt, gopt, ropt, textalphabitsopt,
"-q", "-dNOPAUSE",
- "-dSAFER", "-");
+ "-dPARANOIDSAFER", "-");
}
execl(ghostscriptProg, arg0, deviceopt, outfileopt, gopt, ropt, "-q",
- "-dNOPAUSE", "-dSAFER", "-", NULL);
+ "-dNOPAUSE", "-dPARANOIDSAFER", "-", NULL);
pm_error("execl() of Ghostscript ('%s') failed, errno=%d (%s)",
ghostscriptProg, errno, strerror(errno));

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,373 @@
diff -up converter/other/anytopnm.security-scripts converter/other/anytopnm
--- converter/other/anytopnm.security-scripts 2009-12-10 08:34:36.000000000 +0100
+++ converter/other/anytopnm 2010-03-16 21:28:09.000000000 +0100
@@ -510,10 +510,7 @@ else
inputFile="-"
fi
-tempdir="${TMPDIR-/tmp}/anytopnm.$$"
-mkdir -m 0700 $tempdir || \
- { echo "Could not create temporary file. Exiting."; exit 1;}
-trap 'rm -rf $tempdir' 0
+tempdir=$(mktemp -d -t anytopnm.XXXXXXXXXX) || exit 1
# Take out all spaces
# Find the filename extension for last-ditch efforts later
@@ -539,9 +536,17 @@ if [ "$filetype" = "unknown" ]; then
echo "$progname: unknown file type. " \
"'file' says mime type is '$mimeType', " 1>&2
echo "type description is '$typeDescription'" 1>&2
+ if [ -d "$tempdir" ] ; then
+ rm -rf "$tempdir"
+ fi
+
exit 1
fi
convertIt $file $filetype
+if [ -d "$tempdir" ] ; then
+ rm -rf "$tempdir"
+fi
+
exit 0
diff -up editor/pamstretch-gen.security-scripts editor/pamstretch-gen
--- editor/pamstretch-gen.security-scripts 2009-12-10 08:34:32.000000000 +0100
+++ editor/pamstretch-gen 2010-03-16 21:28:47.000000000 +0100
@@ -31,13 +31,9 @@ if [ "$1" = "" ]; then
exit 1
fi
-tempdir="${TMPDIR-/tmp}/pamstretch-gen.$$"
-mkdir -m 0700 $tempdir || \
- { echo "Could not create temporary file. Exiting."; exit 1;}
+tempfile=$(mktemp /tmp/pnmig.XXXXXXXXXX) || exit 1
trap 'rm -rf $tempdir' 0 1 3 15
-tempfile=$tempdir/pnmig
-
if ! cat $2 >$tempfile 2>/dev/null; then
echo 'pamstretch-gen: error reading file' 1>&2
exit 1
diff -up editor/pnmmargin.security-scripts editor/pnmmargin
--- editor/pnmmargin.security-scripts 2009-12-10 08:34:32.000000000 +0100
+++ editor/pnmmargin 2010-03-16 21:28:09.000000000 +0100
@@ -11,15 +11,11 @@
# documentation. This software is provided "as is" without express or
# implied warranty.
-tempdir="${TMPDIR-/tmp}/pnmmargin.$$"
-mkdir -m 0700 $tempdir || \
- { echo "Could not create temporary file. Exiting." 1>&2; exit 1;}
-trap 'rm -rf $tempdir' 0 1 3 15
-
-tmp1=$tempdir/pnmm1
-tmp2=$tempdir/pnmm2
-tmp3=$tempdir/pnmm3
-tmp4=$tempdir/pnmm4
+tmpdir=$(mktemp -d -t ppmmargin.XXXXXXX) || exit 1
+tmp1="$tmpdir/tmp1"
+tmp2="$tmpdir/tmp2"
+tmp3="$tmpdir/tmp3"
+tmp4="$tmpdir/tmp4"
color="-gofigure"
plainopt=""
@@ -90,6 +86,7 @@ else
-white | -black )
pnmpad $plainopt $color \
-left=$size -right=$size -top=$size -bottom=$size $tmp1
+ rm -rf "$tmpdir"
exit
;;
* )
diff -up editor/ppmfade.security-scripts editor/ppmfade
--- editor/ppmfade.security-scripts 2009-12-10 08:34:32.000000000 +0100
+++ editor/ppmfade 2010-03-16 21:28:09.000000000 +0100
@@ -14,6 +14,7 @@
#
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
use strict;
+use File::Temp "tempdir";
my $SPREAD = 1;
my $SHIFT = 2;
@@ -111,20 +112,26 @@ if ($first_file ne "undefined") {
print("Frames are " . $width . "W x " . $height . "H\n");
+#
+# We create a tmp-directory right here
+#
+my $tmpdir = tempdir("ppmfade.XXXXXX", CLEANUP => 1);
+
+
if ($first_file eq "undefined") {
print "Fading from black to ";
- system("ppmmake \\#000 $width $height >junk1$$.ppm");
+ system("ppmmake \\#000 $width $height >$tmpdir/junk1$$.ppm");
} else {
print "Fading from $first_file to ";
- system("cp", $first_file, "junk1$$.ppm");
+ system("cp", $first_file, "$tmpdir/junk1$$.ppm");
}
if ($last_file eq "undefined") {
print "black.\n";
- system("ppmmake \\#000 $width $height >junk2$$.ppm");
+ system("ppmmake \\#000 $width $height >$tmpdir/junk2$$.ppm");
} else {
print "$last_file\n";
- system("cp", $last_file, "junk2$$.ppm");
+ system("cp", $last_file, "$tmpdir/junk2$$.ppm");
}
#
@@ -132,14 +139,14 @@ if ($last_file eq "undefined") {
#
# Here's what our temporary files are:
-# junk1$$.ppm: The original (fade-from) image
-# junk2$$.ppm: The target (fade-from) image
-# junk3$$.ppm: The frame of the fade for the current iteration of the
-# the for loop.
-# junk1a$$.ppm: If the fade involves a ppmmix sequence from one intermediate
-# image to another, this is the first frame of that
-# sequence.
-# junk2a$$.ppm: This is the last frame of the above-mentioned ppmmix sequence
+# $tmpdir/junk1$$.ppm: The original (fade-from) image
+# $tmpdir/junk2$$.ppm: The target (fade-from) image
+# $tmpdir/junk3$$.ppm: The frame of the fade for the current iteration of the
+# the for loop.
+# $tmpdir/junk1a$$.ppm: If the fade involves a ppmmix sequence from one intermediate
+# image to another, this is the first frame of that
+# sequence.
+# $tmpdir/junk2a$$.ppm: This is the last frame of the above-mentioned ppmmix sequence
my $i; # Frame number
for ($i = 1; $i <= $nframes; $i++) {
@@ -147,147 +154,147 @@ for ($i = 1; $i <= $nframes; $i++) {
if ($mode eq $SPREAD) {
if ($i <= 10) {
my $n = $spline20[$i] * 100;
- system("ppmspread $n junk1$$.ppm >junk3$$.ppm");
+ system("ppmspread $n $tmpdir/junk1$$.ppm >$tmpdir/junk3$$.ppm");
} elsif ($i <= 20) {
my $n;
$n = $spline20[$i] * 100;
- system("ppmspread $n junk1$$.ppm >junk1a$$.ppm");
+ system("ppmspread $n $tmpdir/junk1$$.ppm >$tmpdir/junk1a$$.ppm");
$n = (1-$spline20[$i-10]) * 100;
- system("ppmspread $n junk2$$.ppm >junk2a$$.ppm");
+ system("ppmspread $n $tmpdir/junk2$$.ppm >$tmpdir/junk2a$$.ppm");
$n = $spline10[$i-10];
- system("ppmmix $n junk1a$$.ppm junk2a$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1a$$.ppm $tmpdir/junk2a$$.ppm >$tmpdir/junk3$$.ppm");
} else {
my $n = (1-$spline20[$i-10])*100;
- system("ppmspread $n junk2$$.ppm >junk3$$.ppm");
+ system("ppmspread $n $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
}
} elsif ($mode eq $SHIFT) {
if ($i <= 10) {
my $n = $spline20[$i] * 100;
- system("ppmshift $n junk1$$.ppm >junk3$$.ppm");
+ system("ppmshift $n $tmpdir/junk1$$.ppm >$tmpdir/junk3$$.ppm");
} elsif ($i <= 20) {
my $n;
$n = $spline20[$i] * 100;
- system("ppmshift $n junk1$$.ppm >junk1a$$.ppm");
+ system("ppmshift $n $tmpdir/junk1$$.ppm >$tmpdir/junk1a$$.ppm");
$n = (1-$spline20[$i-10])*100;
- system("ppmshift $n junk2$$.ppm >junk2a$$.ppm");
+ system("ppmshift $n $tmpdir/junk2$$.ppm >$tmpdir/junk2a$$.ppm");
$n = $spline10[$i-10];
- system("ppmmix $n junk1a$$.ppm junk2a$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1a$$.ppm $tmpdir/junk2a$$.ppm >$tmpdir/junk3$$.ppm");
} else {
my $n = (1-$spline20[$i-10]) * 100;
- system("ppmshift $n junk2$$.ppm >junk3$$.ppm");
+ system("ppmshift $n $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
}
} elsif ($mode eq $RELIEF) {
if ($i == 1) {
- system("ppmrelief junk1$$.ppm >junk1r$$.ppm");
+ system("ppmrelief $tmpdir/junk1$$.ppm >$tmpdir/junk1r$$.ppm");
}
if ($i <= 10) {
my $n = $spline10[$i];
- system("ppmmix $n junk1$$.ppm junk1r$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1r$$.ppm >$tmpdir/junk3$$.ppm");
} elsif ($i <= 20) {
my $n = $spline10[$i-10];
- system("ppmmix $n junk1r$$.ppm junk2r$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1r$$.ppm $tmpdir/junk2r$$.ppm >$tmpdir/junk3$$.ppm");
} else {
my $n = $spline10[$i-20];
- system("ppmmix $n junk2r$$.ppm junk2$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk2r$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
}
if ($i == 10) {
- system("ppmrelief junk2$$.ppm >junk2r$$.ppm");
+ system("ppmrelief $tmpdir/junk2$$.ppm >$tmpdir/junk2r$$.ppm");
}
} elsif ($mode eq $OIL) {
if ($i == 1) {
- system("ppmtopgm junk1$$.ppm | pgmoil >junko$$.ppm");
- system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
- ">junk1o$$.ppm");
+ system("ppmtopgm $tmpdir/junk1$$.ppm | pgmoil >$tmpdir/junko$$.ppm");
+ system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+ ">$tmpdir/junk1o$$.ppm");
}
if ($i <= 10) {
my $n = $spline10[$i];
- system("ppmmix $n junk1$$.ppm junk1o$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1o$$.ppm >$tmpdir/junk3$$.ppm");
} elsif ($i <= 20) {
my $n = $spline10[$i-10];
- system("ppmmix $n junk1o$$.ppm junk2o$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1o$$.ppm $tmpdir/junk2o$$.ppm >$tmpdir/junk3$$.ppm");
} else {
my $n = $spline10[$i-20];
- system("ppmmix $n junk2o$$.ppm junk2$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk2o$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
}
if ($i == 10) {
- system("ppmtopgm junk2$$.ppm | pgmoil >junko$$.ppm");
- system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
- ">junk2o$$.ppm");
+ system("ppmtopgm $tmpdir/junk2$$.ppm | pgmoil >$tmpdir/junko$$.ppm");
+ system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+ ">$tmpdir/junk2o$$.ppm");
}
} elsif ($mode eq $EDGE) {
if ($i == 1) {
- system("ppmtopgm junk1$$.ppm | pgmedge >junko$$.ppm");
- system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
- ">junk1o$$.ppm");
+ system("ppmtopgm $tmpdir/junk1$$.ppm | pgmedge >$tmpdir/junko$$.ppm");
+ system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+ ">$tmpdir/junk1o$$.ppm");
}
if ($i <= 10) {
my $n = $spline10[$i];
- system("ppmmix $n junk1$$.ppm junk1o$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1o$$.ppm >$tmpdir/junk3$$.ppm");
} elsif ($i <= 20) {
my $n = $spline10[$i-10];
- system("ppmmix $n junk1o$$.ppm junk2o$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1o$$.ppm $tmpdir/junk2o$$.ppm >$tmpdir/junk3$$.ppm");
} else {
my $n = $spline10[$i-20];
- system("ppmmix $n junk2o$$.ppm junk2$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk2o$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
}
if ($i == 10) {
- system("ppmtopgm junk2$$.ppm | pgmedge >junko$$.ppm");
- system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
- ">junk2o$$.ppm");
+ system("ppmtopgm $tmpdir/junk2$$.ppm | pgmedge >$tmpdir/junko$$.ppm");
+ system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+ ">$tmpdir/junk2o$$.ppm");
}
} elsif ($mode eq $BENTLEY) {
if ($i == 1) {
- system("ppmtopgm junk1$$.ppm | pgmbentley >junko$$.ppm");
- system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
- ">junk1o$$.ppm");
+ system("ppmtopgm $tmpdir/junk1$$.ppm | pgmbentley >$tmpdir/junko$$.ppm");
+ system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+ ">$tmpdir/junk1o$$.ppm");
}
if ($i <= 10) {
my $n = $spline10[$i];
- system("ppmmix $n junk1$$.ppm junk1o$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1o$$.ppm >$tmpdir/junk3$$.ppm");
} elsif ($i <= 20) {
my $n = $spline10[$i-10];
- system("ppmmix $n junk1o$$.ppm junk2o$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1o$$.ppm $tmpdir/junk2o$$.ppm >$tmpdir/junk3$$.ppm");
} else {
my $n = $spline10[$i-20];
- system("ppmmix $n junk2o$$.ppm junk2$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk2o$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
}
if ($i == 10) {
- system("ppmtopgm junk2$$.ppm | pgmbentley >junko$$.ppm");
- system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
- ">junk2o$$.ppm");
+ system("ppmtopgm $tmpdir/junk2$$.ppm | pgmbentley >$tmpdir/junko$$.ppm");
+ system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+ ">$tmpdir/junk2o$$.ppm");
}
} elsif ($mode eq $BLOCK) {
if ($i <= 10) {
my $n = 1 - 1.9*$spline20[$i];
- system("pamscale $n junk1$$.ppm | " .
- "pamscale -width $width -height $height >junk3$$.ppm");
+ system("pamscale $n $tmpdir/junk1$$.ppm | " .
+ "pamscale -width $width -height $height >$tmpdir/junk3$$.ppm");
} elsif ($i <= 20) {
my $n = $spline10[$i-10];
- system("ppmmix $n junk1a$$.ppm junk2a$$.ppm >junk3$$.ppm");
+ system("ppmmix $n $tmpdir/junk1a$$.ppm $tmpdir/junk2a$$.ppm >$tmpdir/junk3$$.ppm");
} else {
my $n = 1 - 1.9*$spline20[31-$i];
- system("pamscale $n junk2$$.ppm | " .
- "pamscale -width $width -height $height >junk3$$.ppm");
+ system("pamscale $n $tmpdir/junk2$$.ppm | " .
+ "pamscale -width $width -height $height >$tmpdir/junk3$$.ppm");
}
if ($i == 10) {
- system("cp", "junk3$$.ppm", "junk1a$$.ppm");
- system("pamscale $n junk2$$.ppm | " .
- "pamscale -width $width -height $height >junk2a$$.ppm");
+ system("cp", "$tmpdir/junk3$$.ppm", "$tmpdir/junk1a$$.ppm");
+ system("pamscale $n $tmpdir/junk2$$.ppm | " .
+ "pamscale -width $width -height $height >$tmpdir/junk2a$$.ppm");
}
} elsif ($mode eq $MIX) {
my $fade_factor = sqrt(1/($nframes-$i+1));
- system("ppmmix $fade_factor junk1$$.ppm junk2$$.ppm >junk3$$.ppm");
+ system("ppmmix $fade_factor $tmpdir/junk1$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
} else {
print("Internal error: impossible mode value '$mode'\n");
}
my $outfile = sprintf("%s.%04d.ppm", $base_name, $i);
- system("cp", "junk3$$.ppm", $outfile);
+ system("cp", "$tmpdir/junk3$$.ppm", $outfile);
}
#
# Clean up shop.
#
-system("rm junk*$$.ppm");
+system("rm $tmpdir/junk*$$.ppm");
exit(0);
diff -up editor/ppmshadow.security-scripts editor/ppmshadow
--- editor/ppmshadow.security-scripts 2009-12-10 08:34:32.000000000 +0100
+++ editor/ppmshadow 2010-03-16 21:28:09.000000000 +0100
@@ -72,9 +72,10 @@ sub makeConvolutionKernel($$) {
my $tmpdir = $ENV{TMPDIR} || "/tmp";
-my $ourtmp = "$tmpdir/ppmshadow$$";
-mkdir($ourtmp, 0777) or
- die("Unable to create directory for temporary files '$ourtmp");
+my $ourtmp; chomp($ourtmp = `mktemp -d -t PPMshadow.XXXXXX`);
+if ($? >> 8) {
+ die "Can't create directory for temporary files";
+}
# Process command line options
--- editor/pnmmargin.orig 2014-06-16 21:30:27.480812666 -0400
+++ editor/pnmmargin 2014-06-16 21:30:41.500789921 -0400
@@ -101,3 +101,4 @@
fi
+rm -rf "$tmpdir"

35
srcpkgs/netpbm/template Normal file
View File

@ -0,0 +1,35 @@
# Template file for 'netpbm'
pkgname=netpbm
version=10.66.03
revision=1
wrksrc=advanced
makedepends="pkg-config perl python flex libjpeg-turbo-devel tiff-devel libpng-devel zlib-devel libxml2-devel libX11-devel"
depends=""
short_desc="Toolkit for manipulation of graphic images"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD,GPL,LGPL,custom"
homepage="http://netpbm.sourceforge.net/"
distfiles="ftp://ftp.archlinux.org/other/packages/$pkgname/$pkgname-$version.tar.xz
ftp://ftp.archlinux.org/other/packages/$pkgname/$pkgname-doc-31Jan2014.tar.xz"
checksum="705551823155dcfebdb6b914447769a62eefd7157efd1dae925b36fb7cc647b1
74bcf840ee643c6917330c382484010cb99c004a3fcf05391bebcac63815acb3"
do_configure() {
cat config.mk.in ${FILESDIR}/config.mk >config.mk
sed -i 's|/link|/lib|' lib/Makefile
sed -i 's|install.manwebmain install.manweb install.man|install.man|' GNUmakefile
}
do_build() {
make ${makejobs}
make MAKEMAN="${PWD}/buildtools/makeman" USERGUIDE=. \
-C ../doc -f "${PWD}/buildtools/manpage.mk" manpages
}
do_install() {
make pkgdir=$DESTDIR/usr PKGMANDIR=share/man install-run install-dev
rm $DESTDIR/usr/share/man/man?/*
make MAKEMAN="${PWD}/buildtools/makeman" MANDIR="$DESTDIR/usr/share/man" \
-C ../doc -f "${PWD}/buildtools/manpage.mk" installman
vinstall doc/copyright_summary 644 usr/share/licenses/$pkgname
}

44
srcpkgs/nmh/template Normal file
View File

@ -0,0 +1,44 @@
# Template file for 'nmh'
pkgname=nmh
version=1.6
revision=1
build_style=gnu-configure
configure_args="--sysconfdir=/etc/nmh --libdir=/usr/libexec/nmh --with-cyrus-sasl --with-tls"
makedepends="ncurses-devel db-devel libsasl-devel openssl-devel"
depends=""
conf_files="etc/nmh/MailAliases
etc/nmh/components
etc/nmh/digestcomps
etc/nmh/distcomps
etc/nmh/forwcomps
etc/nmh/mhl.body
etc/nmh/mhl.digest
etc/nmh/mhl.format
etc/nmh/mhl.forward
etc/nmh/mhl.headers
etc/nmh/mhl.reply
etc/nmh/mhn.defaults
etc/nmh/mts.conf
etc/nmh/rcvdistcomps
etc/nmh/rcvdistcomps.outbox
etc/nmh/replcomps
etc/nmh/replgroupcomps
etc/nmh/scan.MMDDYY
etc/nmh/scan.YYYYMMDD
etc/nmh/scan.default
etc/nmh/scan.mailx
etc/nmh/scan.nomime
etc/nmh/scan.size
etc/nmh/scan.time
etc/nmh/scan.timely
etc/nmh/scan.unseen"
short_desc="Message Handling System (New RAND Mail Handler)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://www.nongnu.org/nmh/"
distfiles="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-1.6.tar.gz"
checksum=29338ae2bc8722fe8a5904b7b601a63943b72b07b6fcda53f3a354edb6a64bc3
post_install() {
vinstall COPYRIGHT 644 usr/share/licenses/$pkgname LICENSE
}

14
srcpkgs/nzbget/template Normal file
View File

@ -0,0 +1,14 @@
# Template file for 'nzbget'
pkgname=nzbget
version=12.0
revision=1
build_style=gnu-configure
configure_args="--disable-parcheck --with-tlslib=OpenSSL"
makedepends="pkg-config libxml2-devel ncurses-devel openssl-devel"
depends=""
short_desc="Download from Usenet using .nzb files"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://nzbget.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/files/$pkgname-$version.tar.gz"
checksum=023c4e3b9c7e920d9ea72b60135b438ce13543454f79984c06fd15365b9a882e

15
srcpkgs/opam/template Normal file
View File

@ -0,0 +1,15 @@
# Template file for 'opam'
pkgname=opam
version=1.1.1
revision=1
build_style=gnu-configure
disable_parallel_build=yes
wrksrc=$pkgname-full-$version
depends="ocaml curl"
makedepends="ncurses-devel $depends"
short_desc="OCaml package manager"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="LGPL-3"
homepage="http://opam.ocamlpro.com"
distfiles="http://www.ocamlpro.com/pub/$pkgname-full-$version.tar.gz"
checksum=bfcb78109cf88612b5170b25bb96aa576ed3908c8a68b9164a7ae16f9f59ae38

20
srcpkgs/par/template Normal file
View File

@ -0,0 +1,20 @@
# Template file for 'par'
pkgname=par
version=1.52
revision=1
build_style=gnu-configure
wrksrc=Par152
short_desc="Paragraph reformatter"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://www.nicemice.net/par/"
distfiles="http://www.nicemice.net/par/Par152-autoconf.tar.gz
http://www.nicemice.net/par/Par152.tar.gz"
checksum="034fb943236523629eefee0a33fc6afb5b881648a2fc5c6bef7fd1b89ce44d34
33dcdae905f4b4267b4dc1f3efb032d79705ca8d2122e17efdecfd8162067082"
do_install() {
vinstall par 755 usr/bin
vinstall par.1 644 usr/share/man/man1
vinstall par.doc 644 usr/share/licenses/$pkgname
}

View File

@ -0,0 +1,4 @@
export PLAN9=/opt/plan9
export PATH=$PATH:$PLAN9/bin
export ROOTPATH=$ROOTPATH:$PLAN9/bin
export MANPATH=$MANPATH:$PLAN9/man

View File

@ -0,0 +1,32 @@
# Template file for 'plan9port'
pkgname=plan9port
version=20140306
revision=1
wrksrc=$pkgname
makedepends="which libX11-devel libXt-devel libXext-devel freetype-devel fontconfig-devel"
depends=""
short_desc="Port of many Plan 9 programs to Unix-like operating systems"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3"
homepage="http://swtch.com/plan9port/"
distfiles="https://$pkgname.googlecode.com/files/$pkgname-$version.tgz"
checksum=cbb826cde693abdaa2051c49e7ebf75119bf2a4791fe3b3229f1ac36a408eaeb
do_build() {
./INSTALL
}
do_install() {
xargs -a lib/moveplan9.files -d'\n' sed -i "s#$wrksrc#/opt/plan9#"
vinstall $FILESDIR/plan9.sh 644 etc/profile.d
vinstall LICENSE 644 usr/share/doc/$pkgname
vinstall README 644 usr/share/doc/$pkgname
vinstall CHANGES 644 usr/share/doc/$pkgname
vinstall CONTRIBUTORS 644 usr/share/doc/$pkgname
vmkdir opt
cp -a $wrksrc $DESTDIR/opt/plan9
cd $DESTDIR/opt/plan9
rm install.{log,sum} .xbps*
}

11
srcpkgs/pv/template Normal file
View File

@ -0,0 +1,11 @@
# Template file for 'pv'
pkgname=pv
version=1.5.3
revision=1
build_style=gnu-configure
short_desc="Monitor the progress of data through a pipeline"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="Artistic"
homepage="http://www.ivarch.com/programs/pv.shtml"
distfiles="http://www.ivarch.com/programs/sources/$pkgname-$version.tar.bz2"
checksum=76f3999b1c3b3027163dce6ef667cdf8dafb75218ee25e54a03bfe590478f90e

24
srcpkgs/qiv/template Normal file
View File

@ -0,0 +1,24 @@
# Template file for 'qiv'
pkgname=qiv
version=2.3.1
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="file-devel gtk+-devel libexif-devel lcms2-devel imlib2-devel"
depends="file"
short_desc="Quick Image Viewer"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://spiegl.de/qiv/"
distfiles="http://spiegl.de/qiv/download/$pkgname-$version.tgz"
checksum=675396b539e6511135fe73c867f9fdd6d912c24c7562797cb047c27d0c2c8ee6
do_configure() {
sed -i "s|\./qiv|echo &|" Makefile
sed -i "s|/man/|/share&|" Makefile
sed -i "s|install -s|install|" Makefile
}
do_install() {
make install PREFIX=$DESTDIR/usr
}

View File

@ -0,0 +1,24 @@
--- tree.c 2001-10-01 09:21:08.000000000 -0300
+++ tree.c.new 2007-09-30 00:36:37.968464448 -0300
@@ -81,8 +81,9 @@
n->u[2].i = s->u[2].i;
break;
case nWord:
- n = (*alloc)(offsetof(Node, u[2]));
+ n = (*alloc)(offsetof(Node, u[3]));
n->u[0].s = strcpy((char *) (*alloc)(strlen(s->u[0].s) + 1), s->u[0].s);
+ n->u[2].i = s->u[2].i;
if (s->u[1].s != NULL) {
size_t i = strlen(s->u[0].s);
n->u[1].s = (*alloc)(i);
--- footobar.c 2001-10-12 06:10:27.000000000 -0300
+++ footobar.c.new 2007-09-30 00:39:06.458259082 -0300
@@ -73,7 +73,7 @@
case nForin: fmtprint(f, "for(%T in %T)%T", n->u[0].p, n->u[1].p, n->u[2].p); break;
case nVarsub: fmtprint(f, "$%T(%T)", n->u[0].p, n->u[1].p); break;
case nWord:
- fmtprint(f, quotep(n->u[0].s, dollar) ? "%#S" : "%S", n->u[0].s);
+ fmtprint(f, n->u[2].i || quotep(n->u[0].s, dollar) ? "%#S" : "%S", n->u[0].s);
break;
case nLappend: {
static bool inlist;

14
srcpkgs/rc/template Normal file
View File

@ -0,0 +1,14 @@
# Template file for 'rc'
pkgname=rc
version=1.7.1
revision=1
build_style=gnu-configure
configure_args="--with-readline"
makedepends="readline-devel"
depends=""
short_desc="An alternative implementation of the plan 9 rc shell"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://tobold.org/article/rc"
distfiles="http://static.tobold.org/$pkgname/$pkgname-$version.tar.gz"
checksum=1cff23e897a038422458ba01567a5a2650935205862c3bbf73e773807c248240

13
srcpkgs/rlwrap/template Normal file
View File

@ -0,0 +1,13 @@
# Template file for 'rlwrap'
pkgname=rlwrap
version=0.41
revision=1
build_style=gnu-configure
makedepends="readline-devel"
depends="perl"
short_desc="Adds readline-style editing and history to programs"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://utopia.knoware.nl/~hlub/uck/rlwrap/"
distfiles="http://utopia.knoware.nl/~hlub/uck/rlwrap/$pkgname-$version.tar.gz"
checksum=34497647b68df4ee031acf4ef80c09c79fe02b9027e8988a64e13f9ebc17c20a

1
srcpkgs/tidy-devel Symbolic link
View File

@ -0,0 +1 @@
tidy

25
srcpkgs/tidy/template Normal file
View File

@ -0,0 +1,25 @@
# Template file for 'tidy'
pkgname=tidy
version=1.46
wrksrc=tidyhtml-$version/tidy
hostmakedepends="libtool automake autoconf"
revision=1
build_style=gnu-configure
short_desc="A tool to tidy down your HTML code to a clean style"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://tidy.sourceforge.net/"
distfiles="ftp://ftp.archlinux.org/other/tidyhtml/tidyhtml-1.46.tar.bz2"
checksum=0555085b98238b7c36c5536a5c71b949fef3b58250b12cc51e5713a662aba7fe
pre_configure() {
sh build/gnuauto/setup.sh
}
tidy-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/"*.a"
}
}

View File

@ -0,0 +1,21 @@
# Template file for 'unclutter'
pkgname=unclutter
version=8
revision=1
wrksrc=$pkgname
makedepends="libX11-devel"
short_desc="A small program for hiding the mouse cursor"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="PD"
homepage="http://ftp.x.org/contrib/utilities/unclutter-8.README"
distfiles="http://ftp.x.org/contrib/utilities/$pkgname-$version.tar.Z>$pkgname-$version.tar.gz"
checksum=b855a78d4465ab2f86287eacac63a73f1504b08522840aa37718776e7ec9192a
do_build() {
make CC="$CC" CFLAGS="$CFLAGS" INSTPGMFLAGS=
}
do_install() {
vinstall unclutter 755 usr/bin
vinstall unclutter.man 644 usr/share/man/man1 unclutter.1
}

View File

@ -0,0 +1,13 @@
# Template file for 'xbindkeys'
pkgname=xbindkeys
version=1.8.6
revision=1
build_style=gnu-configure
makedepends="pkg-config libX11-devel guile-devel guile gc-devel"
depends="guile"
short_desc="Launch shell commands with your keyboard or your mouse under X"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://www.nongnu.org/xbindkeys/xbindkeys.html"
distfiles="http://www.nongnu.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=6c0d18be19fc19ab9b4595edf3a23c0a6946c8a5eb5c1bc395471c8f9a710d18

16
srcpkgs/xdotool/template Normal file
View File

@ -0,0 +1,16 @@
# Template file for 'xdotool'
pkgname=xdotool
version=2.20110530.1
revision=1
build_style=gnu-makefile
hostmakedepends="perl"
makedepends="libXtst-devel libXinerama-devel"
make_build_target="all static"
make_install_args="INSTALLMAN=$DESTDIR/usr/share/man"
make_install_target="install-static installman"
short_desc="Command-line X11 automation tool"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://www.semicomplete.com/projects/xdotool/"
distfiles="http://semicomplete.googlecode.com/files/$pkgname-$version.tar.gz"
checksum=e7b42c8b1d391970e1c1009b256033f30e57d8e0a2a3de229fd61ecfc27baf67

24
srcpkgs/xlbiff/template Normal file
View File

@ -0,0 +1,24 @@
# Template file for 'xlbiff'
pkgname=xlbiff
version=4.1
revision=1
makedepends="libX11-devel libXaw-devel"
short_desc="X Literate Biff, a mail notifier"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="PD"
homepage="http://www.edsantiago.com/xlbiff/"
distfiles="http://www.edsantiago.com/xlbiff/$pkgname-$version.tar.gz"
checksum=ca758c186d8fbe3505b86ba7aea21c6e20733a5b37e6ff5c308f09e8425e4697
do_build() {
make -f Makefile.std MHLIBDIR=/etc/nmh CC="$CC" DEBUG="$CFLAGS"
sed -n 2,30p xlbiff.c >LICENSE
}
do_install() {
vinstall xlbiff 755 usr/bin
vinstall xlbiff.man 644 usr/share/man/man1 xlbiff.1
vinstall xlbiff.form 644 etc/nmh
vinstall XLbiff.ad 644 usr/lib/X11/app-defaults
vinstall LICENSE 644 usr/share/licenses/$pkgname
}