summaryrefslogtreecommitdiff
path: root/cgit/Makefile
blob: 32bce2b5d028d1380577456e1059ef3539c27808 (plain) (blame)
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
30
31
32
33
34
# First do:
#     pkg_add git cgit lowdown highlight
#
# Create a user with:
#     shrike# userinfo git
#     login	git
#     passwd	*
#     uid	1004
#     groups	1004
#     change	NEVER
#     class	
#     gecos	
#     dir	/home/git
#     shell	/usr/local/bin/git-shell

# Create git repo:
#
#     mkdir /var/www/src/<repo>
#     chown git /var/www/src /var/www/src/<repo>
#     doas -u git git init --bare --shared /var/www/src/<repo>
#     ## Add description to /var/www/src/<repo>/description
#
# See also:
#     ../etc/httpd.conf
#
all:
install:
	$(INSTALL) -m 0555 cgit-about-filter.sh  /var/www/usr/local/bin/cgit-about-filter.sh
	$(INSTALL) -m 0555 cgit-syntax-filter.sh /var/www/usr/local/bin/cgit-syntax-filter.sh
	$(INSTALL) -m 0444 asm48.lang            /var/www/usr/local/share/highlight/langDefs/asm48.lang
	$(INSTALL) -m 0444 srpl.lang             /var/www/usr/local/share/highlight/langDefs/srpl.lang
	$(INSTALL) -m 0444 cgitrc                /var/www/conf/cgitrc
	$(INSTALL) -m 0444 cgit.footer           /var/www/cgit/cgit.footer
	$(INSTALL) -m 0444 cgit.favicon.png      /var/www/cgit/cgit.favicon.png