Browse code

- new makefile target: sunpkg (creates a sun package in ../).

Andrei Pelinescu-Onciul authored on 24/09/2002 18:50:36
Showing 4 changed files
... ...
@@ -115,7 +115,11 @@ Create a tar.gz with the binary distribution:
115 115
 
116 116
 make bin
117 117
 
118
-Install(not done yet):
118
+Create a solaris package:
119
+
120
+make sunpkg
121
+
122
+Install:
119 123
 
120 124
 make prefix=/usr/local  install
121 125
 
... ...
@@ -3,7 +3,7 @@
3 3
 # sip_router makefile
4 4
 #
5 5
 # WARNING: requires gmake (GNU Make)
6
-#  Arch supported: Linux, FreeBSD, SunOS (tested on Solaris 6), WinNT (cygwin)
6
+#  Arch supported: Linux, FreeBSD, SunOS (tested on Solaris 8), WinNT (cygwin)
7 7
 
8 8
 auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc
9 9
 
... ...
@@ -95,6 +95,21 @@ bin:
95 95
 	$(TAR) -C tmp/ser/ -zcf ../$(NAME)-$(RELEASE)_$(OS)_$(ARCH).tar.gz .
96 96
 	rm -rf tmp/ser
97 97
 
98
+.PHONY: sunpkg
99
+sunpkg:
100
+	mkdir -p tmp/ser
101
+	mkdir -p tmp/ser_sun_pkg
102
+	$(MAKE) install prefix=tmp/ser
103
+	(cd solaris; \
104
+	pkgmk -r ../tmp/ser/ -o -d ../tmp/ser_sun_pkg/ -v "$(RELEASE)" ; \
105
+	cd ..)
106
+	cat /dev/null > ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local
107
+	pkgtrans -s tmp/ser_sun_pkg/ ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local \
108
+		IPTELser
109
+	gzip -9 ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local
110
+	rm -rf tmp/ser
111
+	rm -rf tmp/ser_sun_pkg
112
+
98 113
 
99 114
 install: all mk-install-dirs install-cfg install-bin install-modules \
100 115
 	install-doc install-man
101 116
new file mode 100644
... ...
@@ -0,0 +1,9 @@
0
+PKG=IPTELser
1
+ARCH=sparc
2
+VERSION=0.8.7-16
3
+CATEGORY=application
4
+EMAIL=pelinescu-onciul@fokus.gmd.de
5
+NAME= ser or SIP Express Router is a very fast and flexible SIP proxy server
6
+SUNW_ISA=sparcv9
7
+BASEDIR=/usr/local
8
+CLASSES=none
0 9
new file mode 100644
... ...
@@ -0,0 +1,35 @@
0
+# $Id$
1
+i pkginfo=pkginfo
2
+d none etc 0755 bin bin
3
+d none etc/ser 0755 bin bin
4
+e none etc/ser/ser.cfg 0644 bin bin
5
+d none sbin 0755 bin bin
6
+f none sbin/ser 0755 bin bin
7
+d none lib 0755 bin bin
8
+d none lib/ser 2755 bin bin
9
+d none lib/ser/modules 2755 bin bin
10
+f none lib/ser/modules/acc.so 0755 bin bin
11
+f none lib/ser/modules/auth.so 0755 bin bin
12
+f none lib/ser/modules/exec.so 0755 bin bin
13
+f none lib/ser/modules/im.so 0755 bin bin
14
+f none lib/ser/modules/jabber.so 0755 bin bin
15
+f none lib/ser/modules/maxfwd.so 0755 bin bin
16
+f none lib/ser/modules/msilo.so 0755 bin bin
17
+f none lib/ser/modules/pike.so 0755 bin bin
18
+f none lib/ser/modules/print.so 0755 bin bin
19
+f none lib/ser/modules/registrar.so 0755 bin bin
20
+f none lib/ser/modules/rr.so 0755 bin bin
21
+f none lib/ser/modules/sl.so 0755 bin bin
22
+f none lib/ser/modules/sms.so 0755 bin bin
23
+f none lib/ser/modules/textops.so 0755 bin bin
24
+f none lib/ser/modules/tm.so 0755 bin bin
25
+f none lib/ser/modules/usrloc.so 0755 bin bin
26
+d none share 0755 bin bin
27
+d none share/doc 0755 bin bin
28
+d none share/doc/ser 0755 bin bin
29
+f none share/doc/ser/README 0644 bin bin
30
+d none share/man 0755 bin bin
31
+d none share/man/man8 0755 bin bin
32
+f none share/man/man8/ser.8 0644 bin bin
33
+d none share/man/man5 0755 bin bin
34
+f none share/man/man5/ser.cfg.5 0644 bin bin