diff options
author | Pacho Ramos <pacho@gentoo.org> | 2014-07-19 14:09:14 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2014-07-19 14:09:14 +0000 |
commit | a31dcbc15136597fa4f06052af6091f64c9e1cdc (patch) | |
tree | 16ac35dded57527f52eb5f2323bf532107eaefb3 /sys-apps/qingy | |
parent | x86 stable wrt bug #515540 (diff) | |
download | historical-a31dcbc15136597fa4f06052af6091f64c9e1cdc.tar.gz historical-a31dcbc15136597fa4f06052af6091f64c9e1cdc.tar.bz2 historical-a31dcbc15136597fa4f06052af6091f64c9e1cdc.zip |
Add unit file (#517348 by Jose Romildo Malaquias)
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'sys-apps/qingy')
-rw-r--r-- | sys-apps/qingy/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/qingy/Manifest | 24 | ||||
-rw-r--r-- | sys-apps/qingy/files/qingy_at.service | 21 | ||||
-rw-r--r-- | sys-apps/qingy/qingy-1.0.0-r2.ebuild | 134 |
4 files changed, 169 insertions, 18 deletions
diff --git a/sys-apps/qingy/ChangeLog b/sys-apps/qingy/ChangeLog index 311e93a8cf09..46c183e755e6 100644 --- a/sys-apps/qingy/ChangeLog +++ b/sys-apps/qingy/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/qingy # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/ChangeLog,v 1.73 2014/03/01 22:37:55 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/ChangeLog,v 1.74 2014/07/19 14:09:13 pacho Exp $ + +*qingy-1.0.0-r2 (19 Jul 2014) + + 19 Jul 2014; Pacho Ramos <pacho@gentoo.org> +files/qingy_at.service, + +qingy-1.0.0-r2.ebuild: + Add unit file (#517348 by Jose Romildo Malaquias) 01 Mar 2014; Michał Górny <mgorny@gentoo.org> qingy-1.0.0-r1.ebuild, qingy-1.0.0.ebuild: diff --git a/sys-apps/qingy/Manifest b/sys-apps/qingy/Manifest index a625b37b1b91..e8b3af63f497 100644 --- a/sys-apps/qingy/Manifest +++ b/sys-apps/qingy/Manifest @@ -4,30 +4,20 @@ Hash: SHA256 AUX 50qingy-gentoo.el 241 SHA256 66f0e2a345fb7f6cc3bf29879a6014165de11bbd9d1e921ea843780234cd9af3 SHA512 b4ee1fc4b2337647f775bdf38688c93bebad4c4beb5bc4e457c45da014c03832771c5d01112af4a3c3d55c5852b09fdfcde08519b0d506f978bc772c2afd991e WHIRLPOOL 2f066782c5af0876ac55dc8c77743a5a153127901a049e78ceb3a8f3242734b1ea4525b3b1e82af146915aa4bf32d6c35b1731e36de34260b687f8cf867d55da AUX qingy-1.0.0-tinfo.patch 1573 SHA256 f61c69bc7823e360b26b04a0ca16d7001dca8dcd07c932911298a79286296f27 SHA512 a37b92e3e4da0e87687461df7644fbf1b3adef81ecdee411073bb0593875c493cc110e9925c8131b99bc97d143a811190e5e6d03cc4992a18396135936697fcc WHIRLPOOL dfcfef8438856099d58d3e2c17504dfa8634bd8215f2f32a13bf1c1c0cfc4983d71a2865401fd62977c80cd0a873b103c634bad9f377f03a1a50a69d087ceee3 AUX qingy-logrotate 75 SHA256 bf30d9b8a6cf3bf15ff22cd29134e06174fee0ce2aaef4ee383d3c14fe859e44 SHA512 3b22cac09fc7394a4a4aa5a786309378cd769c351eed1e2813b84230c6ec74f7c30bfec9c6a03682b2ad5063a30bbdaac679f9e07bab2cee75ec73dd137aca01 WHIRLPOOL 05e72c85f7c4a700aec7b440b157ec2b619324eebe9def716bb5e92f57da7958d2a75b2518d1d1531cadecfb165dad33fa98dec00f9b42c2e4997058fb72b793 +AUX qingy_at.service 391 SHA256 f61475c16726206c068200b3d9b8fa168d8f9d59825e1103a66bee4bc065837e SHA512 bbbfaea129f8b0ff89a66873f3d2ee2b774ce6f59adfb5efdd7bbaaf7d602a6933e888b68b73bf378864799088bf7f4e645785cbc16c51621bf2fed11a4cc55a WHIRLPOOL 1ec73c4e2b0f63c2d54d3add88372dc6f2f3c3854d086632b9fb2d478036b28b98fa89ffcbbf2b3a98a9fca0c63d8b678760f0be76c8d2d58a1fd20e58b4482a 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 EBUILD qingy-1.0.0-r1.ebuild 4092 SHA256 73a22c6e5ffefda7a0e2cb14e7681393208985d288e18a168f470c47e199dc58 SHA512 09623319b05740632ce1dff634aef5acbd0b865c2eed2ad0e8bb812cdcfcebbff835511166b8e66899312eea543e983e1fd108360f7a35d6a2f02c3e4f57b6e4 WHIRLPOOL d54340aefb85c30f5cb67986372e323e741f997e0e3797fe06de4b95607471a275c0797ea96c5607c17e49178da530471096a355315391dc921f493f9a7c5c86 +EBUILD qingy-1.0.0-r2.ebuild 4165 SHA256 7ce0e910e92258626c8a6ee0a5467610b84dfc89614566042ed0cf4f10e3a366 SHA512 ec9201c203400f5161d0d43d9fcdc21c3605784566921364db6b15a5f697ec3d0f8422f9387adf192a4a0a294911c80af9e3f25730e99b0f95d50652f5648a61 WHIRLPOOL f6892567c0ecdb5090b31c4bba6bf7cfaf9d409af1e0451f2e0002240fd67aef1bb932ad013c38df29a17fa7281996023295f2d9b7147d40545fa05376cc12c9 EBUILD qingy-1.0.0.ebuild 3821 SHA256 0eec530849c8fad42ee125c0eedf9cd8d85fa7bb193754ca5f5fa1367e9f9e47 SHA512 baa4c7baf93e445b8f66de6a1aada81a8570c1df4069ec7d2c330b48f81f23a61dd0b1dfe850528fd425e632a5b5c82d1fbdbb8838fc629aff750153c18a3861 WHIRLPOOL 3f78e3e81b04642c1a20941b9f301d6a9d6e7a875d4b8597711b9d6dd63c556d30485ca070c1ad10ab0bc3ddf7c0ea126b2bc509494c918ca4590d14f378898c -MISC ChangeLog 11963 SHA256 51b3b309ff447ecb83123fdf75db1e480be8db8448bbb1c8237473ad281e6098 SHA512 1592d170fe4a303f7a6ec22934182bf324c10c284d92d6a71253a212d548056dc2baf32c8bc72e981ebdc880bc58c74bbb2fd187491c7da2af1bd908dd184d2d WHIRLPOOL af03e0b3fd79bc4e3ff96c48354325b7a6991b08d9bda6cfa61947a260914410c03dd21880e0277a221928dcd7644ff079e763680baa7ac8aae36985f298d66a +MISC ChangeLog 12143 SHA256 cde26dae1f58b747d35db7d95115467afc196950106707ec42f45c023862cfe1 SHA512 ce3f17b46ce738c6b2a2ced71f9ab432b10ce0f9597e02e6d4aeb7617fdb14cde291a3f9e79f659b21f3e7b279d16c00c546399479de9c46d6ee0f45b6cf4b29 WHIRLPOOL 3d1e1bd5ca7ab50c947e054d127b570c65085757d0141b87e7306671b3521188bbdfabb352fdd141945f7566ac8a7f2003f3b136cc1deb9bef6dc68766bed3ad MISC metadata.xml 361 SHA256 dacf3c034464d1eb369aacf6c8d0fb752f11d0aa043760a565064ea74e24a971 SHA512 d64644ff50cd4c3bde01a511d586062615a3c73a552fe8309849eb4f09bb7a3056c78c724659f20bc0cd177d15acb656d28be7f30d508eba2e1a46a32cd3612d WHIRLPOOL 859ce1dc41b4b8c03f2fd02216dc0beac9a015e826e6c2dfdb83467beb2018271e727211c810a46f59b637f4026854b84dc97b5203cf03f1a1728f83e4f74c4f -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) +Version: GnuPG v2 -iQJ8BAEBCABmBQJTEmFEXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC -MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOR4cQANvLb/R/QTnY3KSjPgIrYPzy -ZzKTqy5lu2ocicXkguj7HABFpmIMpszMcPwDAJhKYKB/fwrTI9HvSCSfWfymt5e1 -7G6061lgIH8f31QezcGEarCNOhGxWi0BHAr5dClPeJE7KyJFOXgPU+Zi/m2XSYTV -+6/YRKSszRSe8t3y8TGbwKTBcAORAFKTgmaBTXZcVQKeAWB+gnJKEOxdTlib8aTT -Skek/73rNqMEfPdcRWyxYebWEQpVDfYroQtyus9hzzn8x5XPTptKxPQWvyd+byry -4YMOW5SxWy4Cc0DCeENmP/3uKZajeZ9GYfsvAfglrP1bc6aMvdclzGakJvzteOEL -ue7pBfcGVk4rXDk52oQtb3zeGLwqWQ6FnK4CNypfn3J6zVNFVvYzBTm85FQslbl1 -ECof+1NwEX0z8TaSxhnmpbBFvRuSXUwxaEyB+WHvRKuui/RdbLEWBxCeLaFY9TX7 -Cm2FIm0UMaX5hnBJTxrWhUS5Nk8Xnm0bZVHcGg2cDjbFWmdb+3HtzXFb+vZxrFMA -nYY5np/MIn+aXzwoQ1sYiNJceHjVlGV43xHIptNbHFGKYBsqOwCeuTxv/niN4x9B -2Iw6+0NP2q7dOFdotvjhaQqq3jcbT7N8NZqoQGEskBRSRqCoGX6Msnwpx7S5TzJW -yPrV3YJnvVlz7v/VQb3J -=QEbz +iEYEAREIAAYFAlPKfAoACgkQCaWpQKGI+9SongCffGI86Di0O/0cC8/MOqu8oyPG +CygAn2nmiQNc8WR7OU//LHQ0Sxhd0v5x +=SsnQ -----END PGP SIGNATURE----- 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/qingy-1.0.0-r2.ebuild b/sys-apps/qingy/qingy-1.0.0-r2.ebuild new file mode 100644 index 000000000000..4336ed716442 --- /dev/null +++ b/sys-apps/qingy/qingy-1.0.0-r2.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-1.0.0-r2.ebuild,v 1.1 2014/07/19 14:09:13 pacho Exp $ + +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 +} |