changed installation path and method

This commit is contained in:
nullgemm 2017-05-23 23:57:57 +02:00
parent f8a481dfd4
commit c60374d361
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ After=getty@tty2.service
[Service]
Type=simple
ExecStart=/bin/ly
ExecStart=/usr/bin/ly
StandardInput=tty
TTYPath=/dev/tty2
TTYReset=yes

View File

@ -3,10 +3,10 @@ ly :
cc -std=c99 -pedantic -Wall -I src -L/usr/lib/security -lform -lncurses -lpam -lpam_misc -lX11 -l:pam_loginuid.so -o build/ly src/main.c src/utils.c src/login.c src/ncui.c src/desktop.c
install : ly
cp build/ly /bin/ly
mkdir -p /etc/ly
cp ly.service /lib/systemd/system/ly.service
ln -sf /usr/lib/security/pam_loginuid.so /lib/pam_loginuid.so
install -d ${DESTDIR}/etc/ly
install -D build/ly -t ${DESTDIR}/usr/bin
install -D ly.service -t ${DESTDIR}/usr/lib/systemd/system
ln -sf /usr/lib/security/pam_loginuid.so ${DESTDIR}/usr/lib/pam_loginuid.so
all : install