-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
29 lines (27 loc) · 961 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#########################################
# Makefile for apache host control. #
#---------------------------------------
# GoTLiuM InSPiRiT <[email protected]> #
#########################################
DESTDIR=
BINDIR=$(DESTDIR)/usr/bin/
ETCDIR=$(DESTDIR)/etc
install:
@echo "Installing .."
@if [ ! -d $(BINDIR) ]; then mkdir -p $(BINDIR); fi
@if [ ! -d $(ETCDIR) ]; then mkdir -p $(ETCDIR); fi
@/bin/cp -f /bin/sh /bin/sh.bak && /bin/ln -sf /bin/bash /bin/sh
@/bin/mkdir -p $(DESTDIR)/usr/lib/ahc/ $(DESTDIR)/srv/projects/
@/bin/cp -Rf ./* $(DESTDIR)/usr/lib/ahc/
@/bin/cp -f ./bin.sh $(BINDIR)ahc
@/bin/chmod +x $(BINDIR)ahc
@/bin/chmod +x /usr/lib/ahc/templates/git-jail.sh
@/bin/ln -sf $(DESTDIR)/usr/lib/ahc/configs.cfg $(DESTDIR)/etc/ahc.conf
@echo "Done."
remove:
@echo "Removing .."
@/bin/rm -rf $(DESTDIR)/usr/lib/ahc/
@/bin/rm -f $(BINDIR)/ahc
@/bin/rm -f $(DESTDIR)/etc/ahc.conf
@/bin/ln -sf /bin/dash /bin/sh
@echo "Done."