1
0
forked from ports/contrib

libpaper: initial commit, version 1.1.28

This commit is contained in:
Tim Biermann 2020-04-11 11:59:11 +00:00
parent 1c6447ff3d
commit 8fcc87406d
3 changed files with 113 additions and 0 deletions

38
libpaper/.footprint Normal file
View File

@ -0,0 +1,38 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/libpaper.d/
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/paperconf
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/paper.h
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libpaper.la
lrwxrwxrwx root/root usr/lib/libpaper.so -> libpaper.so.1.1.2
lrwxrwxrwx root/root usr/lib/libpaper.so.1 -> libpaper.so.1.1.2
-rwxr-xr-x root/root usr/lib/libpaper.so.1.1.2
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/paperconfig
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/paperconf.1.gz
drwxr-xr-x root/root usr/share/man/man3/
-rw-r--r-- root/root usr/share/man/man3/defaultpapername.3.gz
-rw-r--r-- root/root usr/share/man/man3/defaultpapersizefile.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperdone.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperfirst.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperinfo.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperinit.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperlast.3.gz
-rw-r--r-- root/root usr/share/man/man3/papernext.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperprev.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperpsheight.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperpsname.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperpswidth.3.gz
-rw-r--r-- root/root usr/share/man/man3/paperwithsize.3.gz
-rw-r--r-- root/root usr/share/man/man3/systempapername.3.gz
-rw-r--r-- root/root usr/share/man/man3/systempapersizefile.3.gz
drwxr-xr-x root/root usr/share/man/man5/
-rw-r--r-- root/root usr/share/man/man5/papersize.5.gz
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/paperconfig.8.gz

5
libpaper/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF31XBISsQXSCBgoKzErG+Xw3feRHngUnGIlgHJ/Nbdios8gkvv9bflS3+aW+DEW80dc7Dp/FQrjBOG8IvRv2wRgw=
SHA256 (Pkgfile) = 9a8b17e733a4dc4347c999f7b0263e1a90230ded70df7af0dd3f10a531b48d14
SHA256 (.footprint) = 3b2c07df02c922d575966bfd85cf427586069e2d9d7b1fbd1651a7365ede4ded
SHA256 (libpaper_1.1.28.tar.gz) = c8bb946ec93d3c2c72bbb1d7257e90172a22a44a07a07fb6b802a5bb2c95fddc

70
libpaper/Pkgfile Normal file
View File

@ -0,0 +1,70 @@
# Description: Library for handling paper characteristics
# URL: http://ftp.debian.org/debian/pool/main/libp/libpaper/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:
name=libpaper
version=1.1.28
release=1
source=(http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.28.tar.gz)
build() {
cd $name-$version
autoreconf -fi
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static
make
make DESTDIR=$PKG install
mkdir -vp $PKG/etc/libpaper.d
cat > /usr/bin/run-parts << "EOF"
#!/bin/sh
# run-parts: Runs all the scripts found in a directory.
# from Slackware, by Patrick J. Volkerding with ideas borrowed
# from the Red Hat and Debian versions of this utility.
# keep going when something fails
set +e
if [ $# -lt 1 ]; then
echo "Usage: run-parts <directory>"
exit 1
fi
if [ ! -d $1 ]; then
echo "Not a directory: $1"
echo "Usage: run-parts <directory>"
exit 1
fi
# There are several types of files that we would like to
# ignore automatically, as they are likely to be backups
# of other scripts:
IGNORE_SUFFIXES="~ ^ , .bak .new .rpmsave .rpmorig .rpmnew .swp"
# Main loop:
for SCRIPT in $1/* ; do
# If this is not a regular file, skip it:
if [ ! -f $SCRIPT ]; then
continue
fi
# Determine if this file should be skipped by suffix:
SKIP=false
for SUFFIX in $IGNORE_SUFFIXES ; do
if [ ! "$(basename $SCRIPT $SUFFIX)" = "$(basename $SCRIPT)" ]; then
SKIP=true
break
fi
done
if [ "$SKIP" = "true" ]; then
continue
fi
# If we've made it this far, then run the script if it's executable:
if [ -x $SCRIPT ]; then
$SCRIPT || echo "$SCRIPT failed."
fi
done
exit 0
EOF
}