diff options
author | Heath Caldwell <hncaldwell@gentoo.org> | 2009-05-08 21:07:28 +0000 |
---|---|---|
committer | Heath Caldwell <hncaldwell@gentoo.org> | 2009-05-08 21:07:28 +0000 |
commit | 642641e5b02606d56ceef7a5e124f20bd92fbc2f (patch) | |
tree | 20db503e92f0f02a54be136d690b7c7565021f49 /x11-misc/blockdpy | |
parent | x11-libs/libpciaccess: bump to 0.10.6 (diff) | |
download | gentoo-2-642641e5b02606d56ceef7a5e124f20bd92fbc2f.tar.gz gentoo-2-642641e5b02606d56ceef7a5e124f20bd92fbc2f.tar.bz2 gentoo-2-642641e5b02606d56ceef7a5e124f20bd92fbc2f.zip |
New ebuild for blockdpy. Ebuild written by me.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/blockdpy')
-rw-r--r-- | x11-misc/blockdpy/ChangeLog | 10 | ||||
-rw-r--r-- | x11-misc/blockdpy/blockdpy-1.ebuild | 58 | ||||
-rw-r--r-- | x11-misc/blockdpy/metadata.xml | 9 |
3 files changed, 77 insertions, 0 deletions
diff --git a/x11-misc/blockdpy/ChangeLog b/x11-misc/blockdpy/ChangeLog new file mode 100644 index 000000000000..e6fc9b33cfef --- /dev/null +++ b/x11-misc/blockdpy/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for x11-misc/blockdpy +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/blockdpy/ChangeLog,v 1.1 2009/05/08 21:07:28 hncaldwell Exp $ + +*blockdpy-1 (08 May 2009) + + 08 May 2009; Heath Caldwell <hncaldwell@gentoo.org> +blockdpy-1.ebuild, + +metadata.xml: + New ebuild for blockdpy. Ebuild written by me. + diff --git a/x11-misc/blockdpy/blockdpy-1.ebuild b/x11-misc/blockdpy/blockdpy-1.ebuild new file mode 100644 index 000000000000..e709e66af95e --- /dev/null +++ b/x11-misc/blockdpy/blockdpy-1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/blockdpy/blockdpy-1.ebuild,v 1.1 2009/05/08 21:07:28 hncaldwell Exp $ + +inherit toolchain-funcs + +DESCRIPTION="Tool to block access via the physical display while x11vnc is running." +HOMEPAGE="http://www.karlrunge.com/x11vnc/blockdpy.c" +SRC_URI="http://www.karlrunge.com/x11vnc/blockdpy.c" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="x11-libs/libX11 + x11-libs/libXext" +RDEPEND="${DEPEND}" + +S=${WORKDIR} + +src_unpack() { + cp "${DISTDIR}"/blockdpy.c blockdpy.c + + # Add includes to avoid QA warnings. + sed -i '/#include <stdio.h>/i#include <stdlib.h>' blockdpy.c + sed -i '/#include <stdio.h>/i#include <string.h>' blockdpy.c +} + +src_compile() { + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o blockdpy blockdpy.c -lX11 -lXext || + die "compile failed" + + # Create README from head comment in source. + sed -n '1,/^ *\*\//s/^[ -]*\*[ \/]*//p' < blockdpy.c > README +} + +src_install() { + dobin blockdpy || die "install failed" + dodoc README +} + +pkg_postinst() { + # Just warn about missing xlock instead of requiring it in case + # the user wants to use something else. + if ! [ -x /usr/bin/xlock ]; then + ewarn 'The xlock executable was not found.' + ewarn 'blockdpy runs "xlock" as the screen-lock program by default.' + ewarn 'You should either install x11-misc/xlockmore or override the' + ewarn 'default by calling blockdpy with the -lock option or by' + ewarn 'setting the XLOCK_CMD environment variable.' + ewarn + ewarn " Examples: blockdpy -lock 'xscreensaver-command -lock'" + ewarn " blockdpy -lock 'kdesktop_lock --forcelock'" + ewarn + fi +} + diff --git a/x11-misc/blockdpy/metadata.xml b/x11-misc/blockdpy/metadata.xml new file mode 100644 index 000000000000..ef0c2aeb3f4e --- /dev/null +++ b/x11-misc/blockdpy/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>hncaldwell@gentoo.org</email> + <name>Heath Caldwell</name> +</maintainer> +</pkgmetadata> |