public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-misc/blockdpy: metadata.xml ChangeLog blockdpy-1.ebuild
@ 2009-05-08 21:07 Heath Caldwell (hncaldwell)
  0 siblings, 0 replies; only message in thread
From: Heath Caldwell (hncaldwell) @ 2009-05-08 21:07 UTC (permalink / raw
  To: gentoo-commits

hncaldwell    09/05/08 21:07:28

  Added:                metadata.xml ChangeLog blockdpy-1.ebuild
  Log:
  New ebuild for blockdpy.  Ebuild written by me.
  (Portage version: 2.1.6.13/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-misc/blockdpy/metadata.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/blockdpy/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/blockdpy/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?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>



1.1                  x11-misc/blockdpy/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/blockdpy/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/blockdpy/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# 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.




1.1                  x11-misc/blockdpy/blockdpy-1.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/blockdpy/blockdpy-1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/blockdpy/blockdpy-1.ebuild?rev=1.1&content-type=text/plain

Index: blockdpy-1.ebuild
===================================================================
# 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
}







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-08 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-08 21:07 [gentoo-commits] gentoo-x86 commit in x11-misc/blockdpy: metadata.xml ChangeLog blockdpy-1.ebuild Heath Caldwell (hncaldwell)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox