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.

31 lines
929 B

8 years ago
name=i3lock
version=2.10
8 years ago
define_option 'pam: Use PAM for authentication'
dlextract "https://i3wm.org/$name/$name-$version.tar.bz2" \
'a496ec274c2f75bbefaa088c4d18ec85'
8 years ago
option !pam extrafile "$name-$version-no-pam.patch"
_
8 years ago
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
8 years ago
make install \
PREFIX="/$dir_prefix" \
SYSCONFDIR="/$dir_sysconf" \
8 years ago
DESTDIR="$dir_install"
# Install the manpage
install -Dm644 -t "$dir_install/$dir_prefix/$dir_man/man1/" "$name.1"
8 years ago
# 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.
8 years ago
# 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"
8 years ago
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: