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.

32 lines
986 B

8 years ago
name=i3lock
7 years ago
version=2.9.1
8 years ago
update_url="https://i3wm.org/$name/"
define_option 'pam: Use PAM for authentication'
dlextract "https://i3wm.org/$name/$name-$version.tar.bz2" \
7 years ago
'2983fff62236d54687dc7d51a6895edb'
8 years ago
option !pam extrafile "$name-$version-no-pam.patch"
header_end
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_bindir")/" Makefile
make install \
PREFIX="/$dir_prefix" \
SYSCONFDIR="/$dir_sysconfdir" \
DESTDIR="$dir_install"
# Install the manpage
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man1/" "$name.1"
8 years ago
# If not using PAM, we need suid 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_bindir/$name"
8 years ago
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: