talimat 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Description: Kullanıcı tanımlama ve izleme, oturumlar girişi ve aktif oturumların çerçevesi
  2. # URL: https://github.com/ConsoleKit2/ConsoleKit2
  3. # Packager: milisarge
  4. # Depends on: acl dbus glib xorg-libx11 polkit eudev pam zlib xmlto
  5. name=consolekit2
  6. version=1.0.0
  7. release=2
  8. source=(https://github.com/Consolekit2/ConsoleKit2/releases/download/$version/ConsoleKit2-$version.tar.bz2
  9. consolekit2.tmpfiles.conf
  10. 75-consolekit2.rules
  11. consolekit2.logrotate)
  12. build() {
  13. cd ConsoleKit2-$version
  14. ./configure \
  15. --prefix=/usr \
  16. --sysconfdir=/etc \
  17. --sbindir=/usr/bin \
  18. --with-rundir=/run \
  19. --libexecdir=/usr/lib/ConsoleKit \
  20. --localstatedir=/var \
  21. --enable-polkit \
  22. --enable-pam-module \
  23. --enable-udev-acl \
  24. --enable-docbook-docs \
  25. --with-dbus-services=/usr/share/dbus-1/services \
  26. --with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \
  27. --without-systemdsystemunitdir
  28. make
  29. make DESTDIR=$PKG install
  30. install -Dm644 $SRC/consolekit2.tmpfiles.conf $PKG/usr/lib/tmpfiles.d/consolekit.conf
  31. rm -rf $PKG/run
  32. install -D -m644 $SRC/consolekit2.logrotate $PKG/etc/logrotate.d/consolekit
  33. install -dm700 -o polkitd $PKG/usr/share/polkit-1/rules.d
  34. install -m644 $SRC/75-consolekit2.rules $PKG/usr/share/polkit-1/rules.d/75-consolekit.rules
  35. install -dm755 $PKG/etc/pam.d/
  36. cat >> $PKG/etc/pam.d/consolekit << "EOF"
  37. auth include system-login
  38. account include system-login
  39. session include system-login
  40. password include system-login
  41. session optional pam_ck_connector.so nox11
  42. EOF
  43. }