Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
name=i3lock
|
|
|
|
version=2.10
|
|
|
|
|
|
|
|
define_option 'pam: Use PAM for authentication'
|
|
|
|
|
|
|
|
dlextract "https://i3wm.org/$name/$name-$version.tar.bz2" \
|
|
|
|
'a496ec274c2f75bbefaa088c4d18ec85'
|
|
|
|
option !pam extrafile "$name-$version-no-pam.patch"
|
|
|
|
_
|
|
|
|
|
|
|
|
cd "$name-$version"
|
|
|
|
|
|
|
|
option !pam patch -p0 -i "../$name-$version-no-pam.patch"
|
|
|
|
|
|
|
|
# Fix install directories
|
|
|
|
sed -i -e "/\$(INSTALL)/s/bin/$(safe_sed "$dir_bin")/" Makefile
|
|
|
|
|
|
|
|
make install \
|
|
|
|
PREFIX="/$dir_prefix" \
|
|
|
|
SYSCONFDIR="/$dir_sysconf" \
|
|
|
|
DESTDIR="$dir_install"
|
|
|
|
|
|
|
|
# Install the manpage
|
|
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_man/man1/" "$name.1"
|
|
|
|
|
|
|
|
# If not using PAM, we need setuid to hash the user's password, as well as make sure the locker isn't killed by the kernel.
|
|
|
|
# Don't worry, the locker drops privileges back to your user as soon as possible.
|
|
|
|
option !pam chmod 4711 "$dir_install/$dir_prefix/$dir_bin/$name"
|
|
|
|
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|