blob: 41a5590d30fe2a7a9dc13e7b430b291c6164f2a5 (
plain)
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
|
VERSION := $(shell sed -ne 's/^VERSION = "\(.*\)"/\1/p' miniircd)
DISTFILES = miniircd COPYING README.md
JAILDIR = /var/jail/miniircd
JAILUSER = nobody
all:
echo "Nothing to do."
dist:
mkdir miniircd-$(VERSION)
cp $(DISTFILES) miniircd-$(VERSION)
tar cvzf miniircd-$(VERSION).tar.gz miniircd-$(VERSION)
rm -rf miniircd-$(VERSION)
clean:
rm -rf miniircd-$(VERSION) *~
jail:
mkdir -p $(JAILDIR)/dev
chmod 755 $(JAILDIR)
mknod $(JAILDIR)/dev/null c 1 3
mknod $(JAILDIR)/dev/urandom c 1 9
chmod 666 $(JAILDIR)/dev/*
chown $(JAILUSER) $(JAILDIR)
|