From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/qingy/PKGBUILD | 48 +++++++++++++++++++++++++ community/qingy/README | 77 +++++++++++++++++++++++++++++++++++++++++ community/qingy/qingy.install | 21 +++++++++++ community/qingy/qingy.logrotate | 9 +++++ 4 files changed, 155 insertions(+) create mode 100644 community/qingy/PKGBUILD create mode 100644 community/qingy/README create mode 100644 community/qingy/qingy.install create mode 100644 community/qingy/qingy.logrotate (limited to 'community/qingy') diff --git a/community/qingy/PKGBUILD b/community/qingy/PKGBUILD new file mode 100644 index 000000000..24be5d84b --- /dev/null +++ b/community/qingy/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 35052 2010-12-14 22:08:35Z jlichtblau $ +# Maintainer: Eric Belanger +# Contributor: Jaroslav Lichtblau +# Contributor: Eric Belanger + +pkgname=qingy +pkgver=1.0.0 +pkgrel=1 +pkgdesc="A DirectFB getty replacement" +arch=('i686' 'x86_64') +url="http://qingy.sourceforge.net/" +license=('GPL') +depends=('directfb' 'pam' 'openssl' 'ncurses' 'libxss') +backup=('etc/qingy/settings' 'etc/qingy/welcomes') +options=('!libtool') +install=$pkgname.install +source=(http://downloads.sourceforge.net/sourceforge/qingy/${pkgname}-${pkgver}.tar.bz2 \ + qingy.logrotate README) +md5sums=('1e0912655e240adfd0ce5ced30bbc685' + 'a9bdfd0ac9f29380eafa97a4a056789d' + 'f54865d71ea34e2f68e53ef60248701b') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed -i 's|/usr/share/xsessions|/etc/X11/sessions|' src/libraries/session.c + sed -i 's|/usr/X11R6/bin|/usr/X11R6/bin:/sbin:/usr/sbin:/opt/kde/bin:/opt/plt/bin:/usr/share/eclipse:/opt/java/bin:/opt/java/jre/bin:/opt/openoffice/program:/opt/NX/bin:/opt/qt/bin:/opt/plan9/bin:/opt/firebird/bin:/opt/glest/bin:/opt/grass/bin:/opt/maven/bin:/usr/share/netbeans/bin:/opt/qgis/bin:/opt/texlive/bin:/opt/torcs/bin:/opt/wildfire/bin|' src/libraries/session.c + + ./configure --prefix=/usr --sbindir=/sbin --sysconfdir=/etc \ + --disable-optimizations --enable-pam \ + --disable-static-build --enable-gpm-lock --enable-emacs + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -d "${pkgdir}/var/lib/qingy" + install -D -m644 "${srcdir}/qingy.logrotate" "${pkgdir}/etc/logrotate.d/qingy" + install -D -m644 "${srcdir}/README" "${pkgdir}/usr/share/doc/qingy/README" + +# fix settings for Arch + sed -i 's|/var/lib/misc|/var/lib/qingy|' "${pkgdir}/etc/qingy/settings" + sed -i 's|/usr/X11R6/bin/XFree86|/usr/bin/Xorg|' "${pkgdir}/etc/qingy/settings" + sed -i 's|/usr/X11R6/bin/xinit|/usr/bin/xinit|' "${pkgdir}/etc/qingy/settings" + sed -i 's|session optional|#session optional|' "${pkgdir}/etc/pam.d/qingy" +} diff --git a/community/qingy/README b/community/qingy/README new file mode 100644 index 000000000..aa5678475 --- /dev/null +++ b/community/qingy/README @@ -0,0 +1,77 @@ +Qingy README + +What is qingy? +-------------- + +Qingy is a replacement for getty. It is using DirectFB to provide a +fast, nice GUI without the overhead of the X Windows System. It allows +the user to log in and start the session of his choice (text console, +gnome, kde, wmaker, ...). Running several X sessions is also +possible. + +How to get qingy? +----------------- + +A package is available in the [community] repo. To install: + +# pacman -S qingy + +Several extra themes are also available. In [community] repo, there is +an Arch specific theme: + +# pacman -S qingy-theme-arch + +A package of several various themes is available in AUR: + + * qingy-themes + +How to setup qingy? +------------------- + +To use qingy, you'll need to edit /etc/inittab. + +Replace: + +c1:2345:respawn:/sbin/agetty 38400 vc/1 linux +c2:2345:respawn:/sbin/agetty 38400 vc/2 linux +c3:2345:respawn:/sbin/agetty 38400 vc/3 linux +c4:2345:respawn:/sbin/agetty 38400 vc/4 linux +c5:2345:respawn:/sbin/agetty 38400 vc/5 linux +c6:2345:respawn:/sbin/agetty 38400 vc/6 linux + +by: + +c1:2345:respawn:/sbin/qingy tty1 +c2:2345:respawn:/sbin/qingy tty2 +c3:2345:respawn:/sbin/qingy tty3 +c4:2345:respawn:/sbin/qingy tty4 +c5:2345:respawn:/sbin/qingy tty5 +c6:2345:respawn:/sbin/agetty 38400 tty6 linux + +Qingy's author suggest to keep agetty on a console (here on console 6) +as a safety measure as qingy is still beta software. + +When logging in an X session, qingy doesn't source your profile. The +best solution is to add: +[ -f /etc/profile ] && . /etc/profile +to your ~/.xinitrc and create a .xsession symlink: +ln -s ~/.xinitrc ~/.xsession +(or source the profiles in your ~/.xsession depending on your setup). Then +login in the 'Your .xsession' session. +Otherwise, add: +[ -f /etc/profile ] && . /etc/profile +to your ~/.bashrc so that the profile will be sourced for each +terminal. + + +Having problems with your Synaptics touchpad? +--------------------------------------------- + +Qingy (and quite possibly other DirectFB applicationss) has some +issues using Synaptics touchpad. This can be solved by adding: + +disable-module=linux_input + +to /etc/directfbrc. If the file does not exist, create it. This will +enable you to use your touchpad, however some extra functionality like +tapping or tap-dragging might not work. diff --git a/community/qingy/qingy.install b/community/qingy/qingy.install new file mode 100644 index 000000000..6f0cdaaad --- /dev/null +++ b/community/qingy/qingy.install @@ -0,0 +1,21 @@ +infodir=/usr/share/info +filelist=(qingy.info.gz) + +post_install() { + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done + echo '==> To setup qingy, read /usr/share/doc/qingy/README' +} + +post_upgrade() { + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +pre_remove() { + 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 +} -- cgit v1.2.3-54-g00ecf