diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-apps/qingy | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-apps/qingy')
-rw-r--r-- | sys-apps/qingy/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/qingy/files/50qingy-gentoo.el | 7 | ||||
-rw-r--r-- | sys-apps/qingy/files/qingy-1.0.0-tinfo.patch | 42 | ||||
-rw-r--r-- | sys-apps/qingy/files/qingy-logrotate | 6 | ||||
-rw-r--r-- | sys-apps/qingy/files/qingy_at.service | 21 | ||||
-rw-r--r-- | sys-apps/qingy/metadata.xml | 13 | ||||
-rw-r--r-- | sys-apps/qingy/qingy-1.0.0-r1.ebuild | 132 | ||||
-rw-r--r-- | sys-apps/qingy/qingy-1.0.0-r2.ebuild | 134 | ||||
-rw-r--r-- | sys-apps/qingy/qingy-1.0.0.ebuild | 125 |
9 files changed, 484 insertions, 0 deletions
diff --git a/sys-apps/qingy/Manifest b/sys-apps/qingy/Manifest new file mode 100644 index 000000000000..83b2c7d59e2a --- /dev/null +++ b/sys-apps/qingy/Manifest @@ -0,0 +1,4 @@ +DIST qingy-1.0.0-consolekit-pam.patch.gz 9263 SHA256 ef1ccfb66e65d78aec93b8356e23f18a78641f2eba775af8acdd83305f7975e4 SHA512 e69743173ea0ff27265dca789f4203b58c271ec6acfeac1ffd87738a3a693f1393778ca70be5d0c8a3e461edfa350047cef3941d8e85679f7c930f3b63c1eeb1 WHIRLPOOL 038c5e77984d451305c522c72a009e235b11d599e8aa79314290c7973322a72d8cf8f8e146813907f4e6d1d76e502c958bddf3a81385c7019dfd987f908efd6c +DIST qingy-1.0.0-screensavers.patch.gz 17372 SHA256 586e1d6e615252d7870789ed2a8438ca3a97efa5ecd71806811aa81dde7c5841 SHA512 563a146acf92d7a4757abd8f537ca912882501d4ef407a3f0ce44f2b334da2872edafe8b489acfc6e4fdafefb60992f8ca13c322047311e5ff16eed091827d64 WHIRLPOOL 18389cf6666e1ae8a4df700c8ee9bec1ed3eec8e3d4342ea837bc45ffccbaeaa53686961732882707e92df59c010f2a8c9ee5a33737b8eb86a6c5eb9742b6b75 +DIST qingy-1.0.0.tar.bz2 611393 SHA256 de4b4b398d5ba81ab2544729864676a04ddc6ae818b357ee09a8770293740cd3 SHA512 79af86de9d1530f429f21a32ef6542987f62f6b5461fe5ba6553deb4fcf36d5746cdb3c6ae8d7c08ace298dd4304cb90a11203239ac7f5c2093c3c5b80f34b54 WHIRLPOOL 6282fc649d2be91adae544732cef0e10ca77083b18c9cd2fdd3c6369061f797903e98bac34e01095ed7e060a3f12845d6d5523f3ff9e7979c3105dc8388aa24c +DIST qingy-gentoo-theme-2.1.tar.bz2 150702 SHA256 1b770255577ed3fc89e1cfdf5019990bf4deffab26201e095084dd5bd97bf093 SHA512 4e5e35f3f14c831e3a383e846018cd39b07761c7f1977f94923ae8889383a3cc5f63cd061b85174c076488e697018ff58bdac3ddaeefab352a3058700a130abd WHIRLPOOL 2ef7e404a1e14229c895cb96de0dd3749e0e9837b884f2f16b71a741140586a56f52a85d2e942bc2963af2ea174d134d811e72655995285f827a16df9c671147 diff --git a/sys-apps/qingy/files/50qingy-gentoo.el b/sys-apps/qingy/files/50qingy-gentoo.el new file mode 100644 index 000000000000..bcb814bda0b7 --- /dev/null +++ b/sys-apps/qingy/files/50qingy-gentoo.el @@ -0,0 +1,7 @@ + +;; qingy site initialisation file + +(add-to-list 'load-path "@SITELISP@") +(autoload 'qingy-mode "qingy-mode" + "Major mode for editing Qingy settings and themes" t) +(add-to-list 'auto-mode-alist '("/\\(?:settings\\|theme\\)$" . qingy-mode)) diff --git a/sys-apps/qingy/files/qingy-1.0.0-tinfo.patch b/sys-apps/qingy/files/qingy-1.0.0-tinfo.patch new file mode 100644 index 000000000000..f752996c92f5 --- /dev/null +++ b/sys-apps/qingy/files/qingy-1.0.0-tinfo.patch @@ -0,0 +1,42 @@ +Use ncurses.pc to get Libs: instead of using AC_CHECK_LIB because ncurses can be configured +to have separate termcap library called libtinfo; and we need both -ltinfo and -lncurses for +linking since symbols are used from both + +http://bugs.gentoo.org/459650 + +--- configure.in ++++ configure.in +@@ -125,12 +125,7 @@ + # End compile emacs stuff + + # Check for ncurses +- HEADERS="curses.h term.h" +- NCURSESLIB="" +- AC_CHECK_HEADERS([$HEADERS],,[AC_MSG_ERROR([$HEADERS_ERROR_MESSAGE])],) +- AC_CHECK_LIB(ncurses, setupterm, [NCURSESLIB="-lncurses"],[AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])] , ) +- AC_CHECK_LIB(ncurses, tputs, [NCURSESLIB="-lncurses"],[AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])] , ) +- AC_SUBST(NCURSESLIB) ++ PKG_CHECK_MODULES(NCURSES, ncurses, [], [AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])]) + # End check for ncurses + + # Check for PAM support +--- src/libraries/Makefile.am ++++ src/libraries/Makefile.am +@@ -4,7 +4,7 @@ + INCLUDES = -I../.. -I../ + BUILT_SOURCES = parse_settings.h + +-AM_CFLAGS = -DSETTINGS_DIR=\"$(sysconfdir)/qingy\" -DSBINDIR=\"$(sbindir)/\" ++AM_CFLAGS = -DSETTINGS_DIR=\"$(sysconfdir)/qingy\" -DSBINDIR=\"$(sbindir)/\" $(NCURSES_CFLAGS) + + if !WANT_STATIC + pkglib_LTLIBRARIES = libqingy.la +@@ -35,7 +35,7 @@ + EXTRA_libqingy_la_SOURCES = \ + crypto_openssl.c crypto_libgcrypt.c crypto.h + +-libqingy_la_LIBADD = @PASSWDLIB@ @CRYPTOLIB@ @NCURSESLIB@ @XLIBS@ ++libqingy_la_LIBADD = @PASSWDLIB@ @CRYPTOLIB@ @XLIBS@ $(NCURSES_LIBS) + libqingy_la_LDFLAGS = -release @VERSION@ + + libqingy_static_la_SOURCES = $(libqingy_la_SOURCES) diff --git a/sys-apps/qingy/files/qingy-logrotate b/sys-apps/qingy/files/qingy-logrotate new file mode 100644 index 000000000000..f4acb30bc657 --- /dev/null +++ b/sys-apps/qingy/files/qingy-logrotate @@ -0,0 +1,6 @@ +/var/log/qingy.log { + missingok + rotate 5 + size 100k + weekly +} diff --git a/sys-apps/qingy/files/qingy_at.service b/sys-apps/qingy/files/qingy_at.service new file mode 100644 index 000000000000..b321d224a152 --- /dev/null +++ b/sys-apps/qingy/files/qingy_at.service @@ -0,0 +1,21 @@ +[Unit] +Description=Qingy on %I +Documentation=info:qingy +After=systemd-user-sessions.service plymouth-quit-wait.service + +[Service] +Environment=TERM=linux +ExecStart=/sbin/qingy %I -n +Type=idle +Restart=always +RestartSec=0 +UtmpIdentifier=%I +TTYPath=/dev/%I +TTYReset=yes +TTYVHangup=yes +TTYVTDisallocate=yes +KillMode=process +IgnoreSIGPIPE=no + +[Install] +Alias=getty.target.wants/qingy@tty1.service diff --git a/sys-apps/qingy/metadata.xml b/sys-apps/qingy/metadata.xml new file mode 100644 index 000000000000..0ed2678f8537 --- /dev/null +++ b/sys-apps/qingy/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <use> + <flag name="consolekit">Enable native consolekit support</flag> + <flag name="opensslcrypt">Encrypt communications between qingy and its GUI + using <pkg>dev-libs/openssl</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">qingy</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-apps/qingy/qingy-1.0.0-r1.ebuild b/sys-apps/qingy/qingy-1.0.0-r1.ebuild new file mode 100644 index 000000000000..28df23839ab8 --- /dev/null +++ b/sys-apps/qingy/qingy-1.0.0-r1.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools elisp-common eutils pam + +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 + http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-screensavers.patch.gz + http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-consolekit-pam.patch.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="consolekit crypt directfb emacs gpm opensslcrypt pam static X" + +RDEPEND=">=sys-libs/ncurses-5.7-r7:= + opensslcrypt? ( dev-libs/openssl:0= ) + crypt? ( >=dev-libs/libgcrypt-1.2.1:0= ) + directfb? ( >=dev-libs/DirectFB-1.4.2[fbcon,jpeg,png,truetype] ) + emacs? ( virtual/emacs ) + pam? ( >=sys-libs/pam-0.75-r11 ) + X? ( + x11-libs/libX11:= + x11-libs/libXScrnSaver:= + x11-proto/scrnsaverproto + )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4.1.4-r1 + virtual/pkgconfig" +RDEPEND="${RDEPEND} + consolekit? ( + sys-auth/consolekit + sys-apps/dbus ) + pam? ( sys-auth/pambase )" + +SITEFILE=50${PN}-gentoo.el + +src_prepare() { + epatch "${FILESDIR}"/${P}-tinfo.patch + # bug #359637 and bug #462634 - fixes from upstream + epatch "${DISTDIR}"/${P}-screensavers.patch.gz + # bug #372675 - fix from upstream + epatch "${DISTDIR}"/${P}-consolekit-pam.patch.gz + eautoreconf +} + +src_configure() { + local crypto_support="--disable-crypto" + local emacs_support="--disable-emacs --without-lispdir" + + if use crypt && use opensslcrypt; then + echo + ewarn "You can have openssl or libgcrypt as a crypto library, not both." + ewarn "Using libgcrypt now..." + echo + fi + + 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 consolekit) \ + $(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} +} + +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 + + # 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 + + # Alter config file so that it uses our theme + sed -i 's/theme = "default"/theme = "gentoo"/' "${D}"/etc/${PN}/settings + + # Install log rotation policy + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}-logrotate ${PN} + + use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE} + + rm "${D}"/etc/pam.d/qingy + 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 +} diff --git a/sys-apps/qingy/qingy-1.0.0-r2.ebuild b/sys-apps/qingy/qingy-1.0.0-r2.ebuild new file mode 100644 index 000000000000..2b5951b29369 --- /dev/null +++ b/sys-apps/qingy/qingy-1.0.0-r2.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools elisp-common eutils pam systemd + +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 + http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-screensavers.patch.gz + http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-consolekit-pam.patch.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="consolekit crypt directfb emacs gpm opensslcrypt pam static X" + +RDEPEND=">=sys-libs/ncurses-5.7-r7:= + opensslcrypt? ( dev-libs/openssl:0= ) + crypt? ( >=dev-libs/libgcrypt-1.2.1:0= ) + directfb? ( >=dev-libs/DirectFB-1.4.2[fbcon,jpeg,png,truetype] ) + emacs? ( virtual/emacs ) + pam? ( >=sys-libs/pam-0.75-r11 ) + X? ( + x11-libs/libX11:= + x11-libs/libXScrnSaver:= + x11-proto/scrnsaverproto + )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4.1.4-r1 + virtual/pkgconfig" +RDEPEND="${RDEPEND} + consolekit? ( + sys-auth/consolekit + sys-apps/dbus ) + pam? ( sys-auth/pambase )" + +SITEFILE=50${PN}-gentoo.el + +src_prepare() { + epatch "${FILESDIR}"/${P}-tinfo.patch + # bug #359637 and bug #462634 - fixes from upstream + epatch "${DISTDIR}"/${P}-screensavers.patch.gz + # bug #372675 - fix from upstream + epatch "${DISTDIR}"/${P}-consolekit-pam.patch.gz + eautoreconf +} + +src_configure() { + local crypto_support="--disable-crypto" + local emacs_support="--disable-emacs --without-lispdir" + + if use crypt && use opensslcrypt; then + echo + ewarn "You can have openssl or libgcrypt as a crypto library, not both." + ewarn "Using libgcrypt now..." + echo + fi + + 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 consolekit) \ + $(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} +} + +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 + + # 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 + + # Alter config file so that it uses our theme + sed -i 's/theme = "default"/theme = "gentoo"/' "${D}"/etc/${PN}/settings + + # Install log rotation policy + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}-logrotate ${PN} + + use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE} + + rm "${D}"/etc/pam.d/qingy + pamd_mimic system-local-login qingy auth account password session + + systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service" +} + +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 +} diff --git a/sys-apps/qingy/qingy-1.0.0.ebuild b/sys-apps/qingy/qingy-1.0.0.ebuild new file mode 100644 index 000000000000..f1d5674546e4 --- /dev/null +++ b/sys-apps/qingy/qingy-1.0.0.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools elisp-common eutils pam + +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 + http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-screensavers.patch.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="crypt directfb emacs gpm opensslcrypt pam static X" + +RDEPEND=">=sys-libs/ncurses-5.7-r7:= + opensslcrypt? ( dev-libs/openssl:0= ) + crypt? ( >=dev-libs/libgcrypt-1.2.1:0= ) + directfb? ( >=dev-libs/DirectFB-1.4.2[fbcon,jpeg,png,truetype] ) + emacs? ( virtual/emacs ) + pam? ( >=sys-libs/pam-0.75-r11 ) + X? ( + x11-libs/libX11:= + x11-libs/libXScrnSaver:= + x11-proto/scrnsaverproto + )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4.1.4-r1 + virtual/pkgconfig" +RDEPEND="${RDEPEND} + pam? ( sys-auth/pambase )" + +SITEFILE=50${PN}-gentoo.el + +src_prepare() { + epatch "${FILESDIR}"/${P}-tinfo.patch + # bug #359637 and bug #462634 - fixes from upstream + epatch "${DISTDIR}"/${P}-screensavers.patch.gz + eautoreconf +} + +src_configure() { + local crypto_support="--disable-crypto" + local emacs_support="--disable-emacs --without-lispdir" + + if use crypt && use opensslcrypt; then + echo + ewarn "You can have openssl or libgcrypt as a crypto library, not both." + ewarn "Using libgcrypt now..." + echo + fi + + 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} +} + +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 + + # 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 + + # Alter config file so that it uses our theme + sed -i 's/theme = "default"/theme = "gentoo"/' "${D}"/etc/${PN}/settings + + # Install log rotation policy + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}-logrotate ${PN} + + use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE} + + rm "${D}"/etc/pam.d/qingy + 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 +} |