summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/screen
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-02-28 05:18:20 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-02-28 05:18:20 (GMT)
commitf8ed07d415ace905fe7bf99717c53275e04a42be (patch)
tree1ee24fb9281c473b93b79cfb1996a4bac283ca86 /abs/extra-testing/community/screen
parenta2800b8b4932abb6c8d5b0c32c1f9ba76adc4508 (diff)
downloadlinhes_pkgbuild-f8ed07d415ace905fe7bf99717c53275e04a42be.zip
linhes_pkgbuild-f8ed07d415ace905fe7bf99717c53275e04a42be.tar.gz
linhes_pkgbuild-f8ed07d415ace905fe7bf99717c53275e04a42be.tar.bz2
Requested by the community.
Diffstat (limited to 'abs/extra-testing/community/screen')
-rw-r--r--abs/extra-testing/community/screen/PKGBUILD41
-rw-r--r--abs/extra-testing/community/screen/screen.install27
-rw-r--r--abs/extra-testing/community/screen/screen.pam1
3 files changed, 69 insertions, 0 deletions
diff --git a/abs/extra-testing/community/screen/PKGBUILD b/abs/extra-testing/community/screen/PKGBUILD
new file mode 100644
index 0000000..f97df4b
--- /dev/null
+++ b/abs/extra-testing/community/screen/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 9361 2008-08-17 06:28:44Z allan $
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+# Committer: dorphell <dorphell@gmx.net>
+
+pkgname=screen
+pkgver=4.0.3
+pkgrel=6
+_ptygroup=5 #the UID of our PTY/TTY group
+pkgdesc="Full-screen window manager that multiplexes a physical terminal"
+license=('GPL')
+arch=('i686' 'x86_64')
+install=screen.install
+depends=(ncurses libelf shadow gpm)
+backup=('etc/screenrc' 'etc/pam.d/screen')
+url="ftp://ftp.uni-erlangen.de/pub/utilities/screen"
+source=(ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-${pkgver}.tar.gz \
+ screen.pam)
+md5sums=('8506fd205028a96c741e4037de6e3c42' '74f7919d7b65436cc2ea5341fa8ca374')
+
+build() {
+ export MAKEFLAGS="-j1"
+ cd ${startdir}/src/${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr --enable-pam \
+ --with-sys-screenrc=/etc/screenrc --enable-colors256 \
+ --enable-rxvt_osc --with-pty-group=$_ptygroup \
+ --mandir=/usr/share/man
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+ mkdir -p ${startdir}/pkg/etc/pam.d
+ install -m644 ${startdir}/src/screen.pam ${startdir}/pkg/etc/pam.d/screen
+
+ cd etc/
+ mkdir -p ${startdir}/pkg/usr/share/zsh/site-functions/
+ install -m644 completer.zsh ${startdir}/pkg/usr/share/zsh/site-functions/screen
+ mkdir -p ${startdir}/pkg/etc/skel/
+ install -m644 etcscreenrc ${startdir}/pkg/etc/screenrc
+ install -m644 screenrc ${startdir}/pkg/etc/skel/.screenrc
+
+ rm -rf ${startdir}/pkg/usr/info
+}
diff --git a/abs/extra-testing/community/screen/screen.install b/abs/extra-testing/community/screen/screen.install
new file mode 100644
index 0000000..51bd6a7
--- /dev/null
+++ b/abs/extra-testing/community/screen/screen.install
@@ -0,0 +1,27 @@
+
+pre_upgrade() {
+ pre_remove $*
+}
+
+pre_remove() {
+ compiled="/usr/share/terminfo/s/screen-256color"
+ if [ -e $compiled ]; then
+ if pacman -Qo $compiled 2>&1 | grep "No package owns" >/dev/null; then
+ echo -n "removing compiled terminfo..."
+ rm -f $compiled
+ echo "done."
+ fi
+ fi
+ compiled="/usr/share/terminfo/s/screen-256color-bce"
+ if [ -e $compiled ]; then
+ if pacman -Qo $compiled 2>&1 | grep "No package owns" >/dev/null; then
+ echo -n "removing compiled terminfo..."
+ rm -f $compiled
+ echo "done."
+ fi
+ fi
+}
+
+op=$1
+shift
+$op $*
diff --git a/abs/extra-testing/community/screen/screen.pam b/abs/extra-testing/community/screen/screen.pam
new file mode 100644
index 0000000..07c42ad
--- /dev/null
+++ b/abs/extra-testing/community/screen/screen.pam
@@ -0,0 +1 @@
+auth required pam_unix.so