added provisions to build an SVR4 package

This commit is contained in:
Gunnar Ritter 2007-02-24 23:47:28 +00:00
parent 4f2f7775a0
commit 0793775912
2 changed files with 28 additions and 1 deletions

View File

@ -72,7 +72,7 @@
#
# from Makefile 7.13.1.3 (2.11BSD GTE) 1996/10/23
#
# @(#)Makefile 1.50 (gritter) 2/20/05
# @(#)Makefile 1.51 (gritter) 2/25/07
#
#
@ -333,6 +333,22 @@ install: all install-man
test -d $(DESTDIR)$(PRESERVEDIR) || mkdir -p $(DESTDIR)$(PRESERVEDIR)
chmod 1777 $(DESTDIR)$(PRESERVEDIR)
PKGROOT = /var/tmp/heirloom-sh
PKGTEMP = /var/tmp
PKGPROTO = pkgproto
ex.pkg: all
rm -rf $(PKGROOT)
mkdir -p $(PKGROOT)
$(MAKE) ROOT=$(PKGROOT) install
rm -f $(PKGPROTO)
echo 'i pkginfo' >$(PKGPROTO)
(cd $(PKGROOT) && find . -print | pkgproto) | >>$(PKGPROTO) sed 's:^\([df] [^ ]* [^ ]* [^ ]*\) .*:\1 root root:; s:^f\( [^ ]* etc/\):v \1:; s:^f\( [^ ]* var/\):v \1:; s:^\(s [^ ]* [^ ]*=\)\([^/]\):\1./\2:'
rm -rf $(PKGTEMP)/$@
pkgmk -a `uname -m` -d $(PKGTEMP) -r $(PKGROOT) -f $(PKGPROTO) $@
pkgtrans -o -s $(PKGTEMP) `pwd`/$@ $@
rm -rf $(PKGROOT) $(PKGPROTO) $(PKGTEMP)/$@
ex.o: config.h ex_argv.h ex.h ex_proto.h ex_temp.h ex_tty.h ex_tune.h
ex.o: ex_vars.h libterm/libterm.h
ex_addr.o: config.h ex.h ex_proto.h ex_re.h ex_tune.h ex_vars.h

11
pkginfo Normal file
View File

@ -0,0 +1,11 @@
# Sccsid @(#)pkginfo 1.1 (gritter) 2/25/07
PKG=ex
NAME=The ex/vi editor
DESC=The ex/vi editor.
VENDOR=Gunnar Ritter
HOTLINE=http://ex-vi.sourceforge.net
EMAIL=gunnarr@acm.org
VERSION=070225
ARCH=IA32,i386
CATEGORY=utilities
BASEDIR=/