summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-04-05 13:35:33 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-04-05 13:35:33 +0000
commitf4378b2f5f3658383492e5c8aa7dd0484bc3bf86 (patch)
tree23e3bb80508bdfd32ca9bc87d0e48d316a3b94a1 /sys-apps/qingy
parentget stable keywords back (diff)
downloadgentoo-2-f4378b2f5f3658383492e5c8aa7dd0484bc3bf86.tar.gz
gentoo-2-f4378b2f5f3658383492e5c8aa7dd0484bc3bf86.tar.bz2
gentoo-2-f4378b2f5f3658383492e5c8aa7dd0484bc3bf86.zip
Add a new revision making use of pambase, solves bug #216321.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-apps/qingy')
-rw-r--r--sys-apps/qingy/ChangeLog9
-rw-r--r--sys-apps/qingy/qingy-0.9.6-r3.ebuild154
2 files changed, 161 insertions, 2 deletions
diff --git a/sys-apps/qingy/ChangeLog b/sys-apps/qingy/ChangeLog
index 562f05eda688..b722c21a7a0a 100644
--- a/sys-apps/qingy/ChangeLog
+++ b/sys-apps/qingy/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/qingy
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/ChangeLog,v 1.47 2008/04/03 14:54:13 s4t4n Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/ChangeLog,v 1.48 2008/04/05 13:35:33 flameeyes Exp $
+
+*qingy-0.9.6-r3 (05 Apr 2008)
+
+ 05 Apr 2008; Diego Pettenò <flameeyes@gentoo.org> +qingy-0.9.6-r3.ebuild:
+ Add a new revision making use of pambase, solves bug #216321.
*qingy-0.9.6-r2 (03 Apr 2008)
diff --git a/sys-apps/qingy/qingy-0.9.6-r3.ebuild b/sys-apps/qingy/qingy-0.9.6-r3.ebuild
new file mode 100644
index 000000000000..a52a7a813852
--- /dev/null
+++ b/sys-apps/qingy/qingy-0.9.6-r3.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-0.9.6-r3.ebuild,v 1.1 2008/04/05 13:35:33 flameeyes Exp $
+
+inherit elisp-common eutils
+
+GENTOO_THEME_VERSION="2.1"
+
+DESCRIPTION="a DirectFB getty replacement"
+HOMEPAGE="http://qingy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-gentoo-theme-${GENTOO_THEME_VERSION}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crypt directfb emacs gpm logrotate opensslcrypt pam static X"
+
+RDEPEND=">=sys-libs/ncurses-5.4-r6
+ opensslcrypt? ( >=dev-libs/openssl-0.9.7e )
+ crypt? ( >=dev-libs/libgcrypt-1.2.1 )
+ directfb? ( >=dev-libs/DirectFB-0.9.24 )
+ emacs? ( virtual/emacs )
+ pam? ( >=sys-libs/pam-0.75-r11 )
+ X? ( x11-libs/libX11
+ x11-libs/libXScrnSaver
+ x11-proto/scrnsaverproto )"
+
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.12.0
+ >=sys-apps/sed-4.1.4-r1"
+RDEPEND="${RDEPEND}
+ pam? ( sys-auth/pambase )"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack()
+{
+ if use crypt && use opensslcrypt; then
+ echo
+ eerror "You can have openssl or libgcrypt as a crypto library, not both."
+ eerror "Please check your USE flags..."
+ echo
+ die "USE flags check failed"
+ fi
+
+ if use directfb; then
+
+ #Issues with this version have been work-arounded :-)
+ #if has_version "=dev-libs/DirectFB-0.9.25.1"; then
+ # echo
+ # ewarn "You are running DirectFB version 0.9.25.1:"
+ # ewarn "I advise against that as this version introduces"
+ # ewarn "instability, expecially when closing DirectFB mode!"
+ # ewarn "Please consider downgrading DirectFB to version 0.9.24..."
+ # echo
+ # epause
+ #fi
+
+ if ! built_with_use -a dev-libs/DirectFB fbcon jpeg png truetype; then
+ echo
+ eerror "qingy expects DirectFB to provide certain capabilities."
+ eerror "It depends on the theme you use, but at least the following USE flags"
+ eerror "should be enabled in DirectFB: fbcon jpeg png truetype."
+ eerror "You must rebuild DirectFB those USE flags enabled!"
+ echo
+ die "USE flags check failed"
+ fi
+
+ fi
+
+ unpack ${A}
+}
+
+src_compile()
+{
+ local crypto_support="--disable-crypto"
+ local emacs_support="--disable-emacs"
+
+ use emacs && emacs_support="--enable-emacs --with-lispdir=${SITELISP}/${PN}"
+ use opensslcrypt && crypto_support="--enable-crypto=openssl"
+ use crypt && crypto_support="--enable-crypto=libgcrypt"
+
+ econf \
+ --sbindir=/sbin \
+ --disable-optimizations \
+ `use_enable pam` \
+ `use_enable static static-build` \
+ `use_enable gpm gpm-lock` \
+ `use_enable X x-support` \
+ `use_enable directfb DirectFB-support` \
+ ${crypto_support} \
+ ${emacs_support} \
+ || die "Configuration failed"
+ emake || die "Compilation failed"
+}
+
+src_install()
+{
+ # Copy documentation manually as make install only installs info files
+ # INSTALL is left because it contains also configuration informations
+ dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
+
+ # Install the program
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Set the settings file umask to 600, in case somebody
+ # wants to make use of the autologin feature
+ /bin/chmod 600 "${D}/etc/qingy/settings"
+
+ # Install Gentoo theme
+ dodir /usr/share/${PN}/themes/gentoo
+ cp "${WORKDIR}"/gentoo/* "${D}/usr/share/${PN}/themes/gentoo" \
+ || die "Gentoo theme installation failed"
+
+ # Alter config file so that it uses our theme
+ sed -i 's/theme = "default"/theme = "gentoo"/' "${D}/etc/${PN}/settings"
+
+ # Install log rotation policy if user wants it
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}-logrotate" ${PN} || die "Log rotation policy installation failed"
+ fi
+
+ use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+
+ pamd_mimic system-local-login qingy auth account password session
+}
+
+pkg_postinst()
+{
+ einfo "In order to use qingy you must first edit your /etc/inittab"
+ einfo "Check the documentation at ${HOMEPAGE}"
+ einfo "for instructions on how to do that."
+ echo
+ einfo "Also, make sure to adjust qingy settings file (/etc/qingy/settings)"
+ einfo "to your preferences/machine configuration..."
+
+ if use crypt; then
+ echo
+ einfo "You will have to create a key pair using 'qingy-keygen'"
+ echo
+ ewarn "Note that sometimes a generated key-pair may pass the internal tests"
+ ewarn "but fail to work properly. You will get a 'regenerate your keys'"
+ ewarn "message. If this is your case, please remove /etc/qingy/public_key"
+ ewarn "and /etc/qingy/private_key and run qingy-keygen again..."
+ fi
+
+ use emacs && echo && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}