DarkFeather
3253c180fc
Adding session dependence to Ansible Ensuring EtcFiles/profile.d/shadowarch-ssh.sh starts ssh-agent user service
40 lines
1.5 KiB
Makefile
40 lines
1.5 KiB
Makefile
syncList = profile.d tmux.conf
|
|
userServiceList =
|
|
|
|
compile: ./shadowarch ${syncList} ${userServiceList} ./shadowarch.vim ./skel
|
|
@echo Nothing to compile
|
|
|
|
install: compile
|
|
mkdir -p ${pkgdir}/etc/
|
|
cp -pr ./skel ${pkgdir}/etc
|
|
mkdir -p ${pkgdir}/usr/lib/systemd/user
|
|
for i in ${userServiceList}; do cp "$$i" ${pkgdir}/usr/lib/systemd/user/"$$i"; done
|
|
mkdir -p ${pkgdir}/etc/pacman.d/hooks
|
|
mkdir -p ${pkgdir}/usr/share/vim/vimfiles/plugin/
|
|
cp ./shadowarch.vim ${pkgdir}/usr/share/vim/vimfiles/plugin/shadowarch.vim
|
|
for i in ${syncList}; do cp -r "$$i" ${pkgdir}/etc/; chmod -R a+r "${pkgdir}/etc/$$i"; done
|
|
if [ `uname -r | grep -c arch` -eq 1 ]; then mkdir -p ${pkgdir}/usr/share/pacman/keyrings; cp aninix.gpg ${pkgdir}/usr/share/pacman/keyrings; fi
|
|
|
|
checkperm: ${syncList}
|
|
printf "What is your deprivileged user? "; read user; chown -R ${user}:${user} .
|
|
chown -R root:root ${syncList}
|
|
for i in ${syncList}; do if [ -f "${i}" ]; then chmod 0644 "${i}"; elif [ -d "${i}" ]; then chmod 0755 "${i}"; fi; done
|
|
|
|
test:
|
|
bash -n shadowarch
|
|
bash ./shadowarch -h
|
|
echo Success.
|
|
|
|
reverse: ${syncList}
|
|
for i in ${syncList}; do rsync -avz ${syncList} .; done
|
|
for i in ${userServiceList}; do rsync -avz /usr/lib/systemd/user/${userServiceList} .; done
|
|
rsync --delete-before -avz ${pkgdir}/etc/skel ./skel
|
|
|
|
clean:
|
|
git clean -fdX
|
|
|
|
diff: ${syncList}
|
|
if [ -f ${httpRoot}/shadowarch ]; then diff ./shadowarch ${httpRoot}/shadowarch; echo; fi
|
|
for i in ${syncList}; do diff -rc "$$i" ./`echo $$i | rev | cut -f 1 -d '/' | rev`; echo; done
|
|
diff -rc ${pkgdir}/etc/skel ./skel; printf ""
|