cosmic/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

2019-01-02 20:01:57 +00:00
install: apt bin templates man completion files efingerd menu postfix
apt:
xargs -a pkglist sudo apt install -y
2018-12-12 20:09:26 +00:00
bin:
stow -t "/usr/local/bin" bin
templates:
mkdir -p "/etc/templates"
stow -t "/etc/templates" templates
man:
mkdir -p "/usr/share/man/man1"
stow -t "/usr/share/man/man1" man
completion:
mkdir -p "/etc/bash_completion.d"
stow -t "/etc/bash_completion.d" completion
2018-12-31 17:37:01 +00:00
files:
mkdir -p "/usr/share/games/fortunes"
cd files && stow -t "/usr/share/games/fortunes" fortunes
2019-01-01 19:44:04 +00:00
efingerd:
mkdir -p "/etc/efingerd"
stow -t "/etc/efingerd" efingerd
2018-12-31 17:54:26 +00:00
2019-01-01 19:50:10 +00:00
menu:
stow -t "/etc" menu
2019-01-02 19:45:27 +00:00
postfix:
if ! grep -q 'transport_maps' "/etc/postfix/main.cf"; then \
printf "transport_maps = hash:/etc/postfix/transport" >> "/etc/postfix/main.cf"; \
fi
2019-01-02 19:45:27 +00:00
stow -t "/etc/postfix" postfix
sudo chown root /etc/postfix/transport
postmap /etc/postfix/transport
postfix reload
2018-12-12 20:15:48 +00:00
uninstall:
stow -t "/usr/local/bin" -D bin
stow -t "/etc/templates" -D templates
stow -t "/usr/share/man/man1/" -D man
stow -t "/etc/bash_completion.d" -D completion
2019-01-01 19:44:04 +00:00
stow -t "/etc/efingerd" -D efingerd
2019-01-01 19:50:10 +00:00
stow -t "/etc" -D menu
2019-01-02 19:45:27 +00:00
stow -t "/etc/postfix" -D postfix
2018-12-31 17:37:01 +00:00
cd files && stow -t "/usr/share/games/fortunes" -D fortunes
2018-12-12 20:15:48 +00:00
2019-01-02 19:45:27 +00:00
.PHONY: bin templates man completion files efingerd menu postfix