summaryrefslogtreecommitdiff
path: root/community/qingy
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/qingy
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/qingy')
-rw-r--r--community/qingy/PKGBUILD37
-rw-r--r--community/qingy/qingy.install20
-rw-r--r--community/qingy/qingy.logrotate9
-rw-r--r--community/qingy/qingy@.service21
4 files changed, 87 insertions, 0 deletions
diff --git a/community/qingy/PKGBUILD b/community/qingy/PKGBUILD
new file mode 100644
index 000000000..2d4b62b95
--- /dev/null
+++ b/community/qingy/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 90406 2013-05-12 08:49:01Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+
+pkgname=qingy
+pkgver=1.0.0
+pkgrel=8
+pkgdesc="A DirectFB getty replacement"
+arch=('i686' 'x86_64')
+url="http://qingy.sourceforge.net/"
+license=('GPL')
+depends=('directfb' 'openssl' 'libxss')
+makedepends=('emacs')
+backup=('etc/pam.d/qingy' 'etc/logrotate.d/qingy' 'etc/qingy/settings' 'etc/qingy/welcomes')
+options=('!libtool')
+install=qingy.install
+source=(http://downloads.sourceforge.net/sourceforge/qingy/${pkgname}-${pkgver}.tar.bz2 \
+ qingy.logrotate qingy@.service)
+sha1sums=('22ee505e935bf7ddcbd33e23f754a5a1ca082c81'
+ '21676cf0b71334c666f7b3e4f3d8b4f319266c81'
+ '43a6f1cee03ffa598a77cb3c333cb1e8c63b4a2c')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's|/lib/security/||' media/pam/default/qingy
+ XFREE=/usr/bin/Xorg XINIT=/usr/bin/xinit \
+ ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc \
+ --enable-emacs --disable-optimizations --disable-static
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 "${srcdir}/qingy.logrotate" "${pkgdir}/etc/logrotate.d/qingy"
+ install -D -m644 "${srcdir}/qingy@.service" "${pkgdir}/usr/lib/systemd/system/qingy@.service"
+}
diff --git a/community/qingy/qingy.install b/community/qingy/qingy.install
new file mode 100644
index 000000000..0defe31d8
--- /dev/null
+++ b/community/qingy/qingy.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(qingy.info.gz)
+
+post_install() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
diff --git a/community/qingy/qingy.logrotate b/community/qingy/qingy.logrotate
new file mode 100644
index 000000000..e16fb8d2a
--- /dev/null
+++ b/community/qingy/qingy.logrotate
@@ -0,0 +1,9 @@
+/var/log/qingy.log {
+ compress
+ rotate 1
+ size=+1024k
+ notifempty
+ missingok
+ copytruncate
+ noolddir
+}
diff --git a/community/qingy/qingy@.service b/community/qingy/qingy@.service
new file mode 100644
index 000000000..537eb53fd
--- /dev/null
+++ b/community/qingy/qingy@.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=/usr/bin/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