ports/125369: [new port] x11/printscreen: simple screenshot program for X11
Alex Kozlov
spam at rm-rf.kiev.ua
Mon Jul 7 13:50:06 UTC 2008
>Number: 125369
>Category: ports
>Synopsis: [new port] x11/printscreen: simple screenshot program for X11
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 07 13:50:06 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Alex Kozlov
>Release: FreeBSD 6.3
>Organization:
private
>Environment:
>Description:
Add new port: simple screenshot program for X11
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# printscreen
# printscreen/files
# printscreen/files/printscreen.in
# printscreen/Makefile
# printscreen/pkg-descr
#
echo c - printscreen
mkdir -p printscreen > /dev/null 2>&1
echo c - printscreen/files
mkdir -p printscreen/files > /dev/null 2>&1
echo x - printscreen/files/printscreen.in
sed 's/^X//' >printscreen/files/printscreen.in << 'END-of-printscreen/files/printscreen.in'
X#!/bin/sh
X
XPATH=/bin:/usr/local/bin
X
XSTOREDIR="${HOME}/.screenshots"
XSHOTDATE="$(date +%Y.%m.%d-%H.%M.%S)"
XSHOTNAME="${STOREDIR}/screenshot-${SHOTDATE}.png"
X
Xif [ ! -d "${STOREDIR}" ]; then
X mkdir "${STOREDIR}"
Xfi
X
Xxwd -root | xwdtopnm 2>/dev/null | pnmtopng 2>/dev/null > "${SHOTNAME}"
END-of-printscreen/files/printscreen.in
echo x - printscreen/Makefile
sed 's/^X//' >printscreen/Makefile << 'END-of-printscreen/Makefile'
X# New ports collection makefile for: printscreen
X# Date created: 25 Jan 2006
X# Whom: Alex Kozlov <spam at rm-rf.kiev.ua>
X#
X# $FreeBSD$
X#
X
XPORTNAME= printscreen
XPORTVERSION= 1.0
XCATEGORIES= x11
XDISTFILES=
X
XMAINTAINER= spam at rm-rf.kiev.ua
XCOMMENT= Simple screenshot program for X11
X
XRUN_DEPENDS= xwd:${PORTSDIR}/x11/xwd \
X xwdtopnm:${PORTSDIR}/graphics/netpbm
X
XNO_WRKSUBDIR= yes
XNO_BUILD= yes
X
XPLIST_FILES= bin/printscreen
X
Xdo-install:
X @${INSTALL_SCRIPT} ${FILESDIR}/printscreen.in ${PREFIX}/bin/printscreen
X
X.include <bsd.port.mk>
END-of-printscreen/Makefile
echo x - printscreen/pkg-descr
sed 's/^X//' >printscreen/pkg-descr << 'END-of-printscreen/pkg-descr'
XIs a Simple screenshot program for X11
END-of-printscreen/pkg-descr
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list