summaryrefslogtreecommitdiff
path: root/extra/slim
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2013-01-23 19:31:16 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2013-01-23 19:31:16 -0300
commit59a85546825bde45248cd216c2d8fae8f72e4046 (patch)
tree4671056dabe2acadd54ab89d8cfcb46bf2283145 /extra/slim
parent1f07b846d901eeaf0019566766f8a327ed2d078d (diff)
parent91fea2e90c87b282a3bb39b080b8c51eb52cdbbe (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/chmsee/PKGBUILD community/libzdb/PKGBUILD community/notmuch/PKGBUILD community/v8/PKGBUILD community/zathura-ps/PKGBUILD core/dash/PKGBUILD extra/slim/PKGBUILD
Diffstat (limited to 'extra/slim')
-rw-r--r--extra/slim/PKGBUILD83
-rw-r--r--extra/slim/slim.logrotate9
-rw-r--r--extra/slim/slim.pam7
3 files changed, 53 insertions, 46 deletions
diff --git a/extra/slim/PKGBUILD b/extra/slim/PKGBUILD
index bd9809027..5305fb47d 100644
--- a/extra/slim/PKGBUILD
+++ b/extra/slim/PKGBUILD
@@ -1,63 +1,54 @@
-# $Id: PKGBUILD 171076 2012-11-16 14:05:41Z allan $
-# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# $Id: PKGBUILD 175827 2013-01-22 09:52:02Z foutrelis $
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Hugo Ideler <hugoideler@dse.nl>
pkgname=slim
-pkgver=1.3.4
-pkgrel=4
-pkgdesc='Desktop-independent graphical login manager for X11'
+pkgver=1.3.5
+pkgrel=1
+pkgdesc="Desktop-independent graphical login manager for X11"
arch=('i686' 'x86_64' 'mips64el')
-url='http://slim.berlios.de/'
+url="http://slim.berlios.de/"
license=('GPL2')
depends=('pam' 'libxmu' 'libpng' 'libjpeg' 'libxft')
makedepends=('cmake' 'freeglut')
backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim')
-source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'rc.d'
- 'pam.d'
- 'logrotate'
- 'slim.service'
- 'session-name.patch'
- 'libpng-1.4+-support.patch'
- 'fix-array-overflow.patch')
+source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
+ slim.pam
+ slim.logrotate)
+sha256sums=('818d209f51e2fa8d5b94ef75ce90a7415be48b45e796d66f8083a9532b655629'
+ 'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
+ '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- patch -p1 -i ../session-name.patch # FS#26693: fix default session name
- patch -Np1 -i ../libpng-1.4+-support.patch # taken from gentoo to build
- patch -Np0 -i ../fix-array-overflow.patch # FS#30864
- cd ${srcdir}
- mkdir build
- cd build
- cmake ../${pkgbase}-${pkgver} \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_SKIP_RPATH=ON \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DUSE_PAM=yes -DUSE_CONSOLEKIT=no
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Fix installation path of slim.service
+ sed -i 's|usr/lib/systemd/system|/&|' CMakeLists.txt
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DUSE_PAM=yes \
+ -DUSE_CONSOLEKIT=no
make
}
package() {
- cd ${srcdir}/build/
- make DESTDIR="${pkgdir}" install
-
- install -D -m755 ../rc.d "${pkgdir}"/etc/rc.d/slim
- install -D -m644 ../pam.d "${pkgdir}"/etc/pam.d/slim
- install -D -m644 ../logrotate "${pkgdir}"/etc/logrotate.d/slim
-
- # Provide sane defaults
- sed -i 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' "${pkgdir}"/etc/slim.conf
- sed -i 's|/var/run/slim.lock|/var/lock/slim.lock|' "${pkgdir}"/etc/slim.conf
- # install systemd files
- install -D -m644 ${srcdir}/slim.service ${pkgdir}/usr/lib/systemd/system/slim.service
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
+ install -Dm644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim"
+
+ # Provide sane defaults
+ sed -i -e 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' \
+ -e 's|/var/run/slim.lock|/var/lock/slim.lock|' \
+ "$pkgdir/etc/slim.conf"
}
-md5sums=('51543533e492b41007811f7d880720fa'
- 'd8ea9c4dee2811524b67f4f666311a1f'
- '37ef35079139544d04b8316c7f66f754'
- '43da096480bf72c3ccec8ad8400f34f0'
- 'a5d6bde9e63899df7d2081e1585bbe54'
- 'ebcb6829028615686de7b64ceeaaf8ed'
- '6d19bd7a91592ed2bb902b22b9594565'
- '9efc4e0d82d354f0c578be7723870769')
+
+# vim:set ts=2 sw=2 et:
diff --git a/extra/slim/slim.logrotate b/extra/slim/slim.logrotate
new file mode 100644
index 000000000..26ec3b0f4
--- /dev/null
+++ b/extra/slim/slim.logrotate
@@ -0,0 +1,9 @@
+/var/log/slim.log {
+ compress
+ rotate 1
+ size 1024k
+ notifempty
+ missingok
+ copytruncate
+ noolddir
+}
diff --git a/extra/slim/slim.pam b/extra/slim/slim.pam
new file mode 100644
index 000000000..1ab7fb091
--- /dev/null
+++ b/extra/slim/slim.pam
@@ -0,0 +1,7 @@
+#%PAM-1.0
+
+auth include system-local-login
+-auth optional pam_gnome_keyring.so
+account include system-local-login
+session include system-local-login
+-session optional pam_gnome_keyring.so auto_start