-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
33 lines (30 loc) · 1.26 KB
/
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
30
31
32
33
INSTALL ?= /usr/gnu/bin/install
all:
install: all
$(INSTALL) -d $(DESTDIR)/usr/share/man/man1m
$(INSTALL) -d $(DESTDIR)/lib/svc/manifest/system
$(INSTALL) -d $(DESTDIR)/lib/svc/method
$(INSTALL) -d $(DESTDIR)/etc
$(INSTALL) -m 444 sysding.1m $(DESTDIR)/usr/share/man/man1m
$(INSTALL) -m 644 sysding.conf $(DESTDIR)/etc
$(INSTALL) -m 444 sysding.xml $(DESTDIR)/lib/svc/manifest/system
$(INSTALL) -m 555 sysding $(DESTDIR)/lib/svc/method/sysding
ipspkg:
rm -rf proto_install
mkdir -p proto_install/usr/share/man/man1m
mkdir -p proto_install/lib/svc/manifest/system
mkdir -p proto_install/lib/svc/method
mkdir -p proto_install/etc
ln sysding.1m proto_install/usr/share/man/man1m/sysding.1m
ln sysding.conf proto_install/etc/sysding.conf
ln sysding.xml proto_install/lib/svc/manifest/system/sysding.xml
ln sysding proto_install/lib/svc/method/sysding
pkgsend generate proto_install | pkgfmt >sysding.p5m.1
pkgmogrify sysding.p5m.1 sysding.mog | pkgfmt >sysding.p5m.2
pkgdepend generate -md proto_install sysding.p5m.2 | pkgfmt >sysding.p5m.3
pkgdepend resolve -m sysding.p5m.3
rm -rf ips_repo
mkdir -p ips_repo
pkgrepo create ips_repo
pkgrepo set -s ips_repo publisher/prefix=openindiana.org
pkgsend publish -s $(PWD)/ips_repo -d proto_install sysding.p5m.3.res