Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
package patch
Here is a patch I hope to see included in pl2
It allows SVR4 machines to do a "make package" to produce packages
that can be installed with the pkgadd(1M) command. It makes a
client only package and a full package.
It customizes the package based on the results of configure.
Since HylaFAX requires the tiff tools, I have also included a patch
for tiff-v3.4beta035 to make it into a package.
I have only tested this on UnixWare 2.03 and 2.1.2
Included are 4 files. hylapkg.patch hylapkg.tar.gz
tiffpkg.patch tiffpkg.tar.gz
To apply the patch,
$ cd /your-path/tiff-v3.4beta035
$ patch < tiffpkg.patch
$ gzcat tiffpkg.tar.gz | tar xovf -
$ ./configure
$ make package
Now for HylaFAX
$ cd /your-path/hylafax-v4.0pl1
$ patch < hylapkg.patch
$ gzcat hylapkg.tar.gz | tar xovf -
$ ./configure
Now read the README in the pkg directory.
$ make package
Enjoy.
--
Tim Rice Multitalents (707) 887-1469 (voice)
tim@trr.metro.net Keeper of the HylaFAX SCO binaries
*** Makefile.in.orig Tue Nov 26 15:20:19 1996
--- Makefile.in Tue Nov 11 21:23:16 1997
***************
*** 183,188 ****
--- 183,189 ----
else \
true; \
fi
+ @${ECHO} "= "pkg; cd pkg; ${MAKE} clean
clobber::
(cd util; ${MAKE} clobberconfig)
(cd etc; ${MAKE} clobberconfig)
***************
*** 236,241 ****
--- 237,243 ----
else \
true; \
fi
+ (cd pkg; ${MAKE} distclean)
-${RM} -f defs rules Makefile
makeClientDirs::
***************
*** 361,366 ****
--- 363,371 ----
else \
true; \
fi
+
+ package::
+ @${ECHO} "= "pkg; cd pkg; ${MAKE} package
product::
test -d dist || ${MKDIR} dist
*** config.site.orig Tue Nov 26 15:20:18 1996
--- config.site Tue Nov 11 21:23:16 1997
***************
*** 102,107 ****
--- 102,113 ----
#PATH_IMPRIP="/usr/lib/print/psrip" # pathname of Impressario 2.1 RIP
#MANSCHEME="sysv-source-cat-strip" # manual page installation scheme
+ # SVR4 packaging stuff
+ #PKG_ARCH= # ARCH variable in pkginfo file
+ #PKG_EMAIL=someone@somehost.somedomain # EMAIL variable in pkginfo file
+ #PKG_VENDOR="Your Name Here" # VENDOR variable in pkginfo file
+ #
+
#
# Parameters used when building the software.
#
*** configure.orig Tue Nov 26 15:20:17 1996
--- configure Tue Nov 11 21:23:16 1997
***************
*** 81,86 ****
--- 81,91 ----
LIBDB="-L/usr/local/lib -ldb"
DBLIBINC=/usr/local/include
+ # SVR4 packaging stuff
+ PKG_ARCH= # ARCH variable in pkginfo file
+ PKG_EMAIL=someone@somehost.somedomain # EMAIL variable in pkginfo file
+ PKG_VENDOR="Your Name Here" # VENDOR variable in pkginfo file
+
: ${MAKE=make} # make to use
# screws up the test of `-f -'
unset MAKEFLAGS
***************
*** 185,190 ****
--- 190,198 ----
PATHGETTY PATH_GETTY
PATHVGETTY PATH_VGETTY
PATHEGETTY PATH_EGETTY
+ PKG_ARCH
+ PKG_EMAIL
+ PKG_VENDOR
PORT
PORTFUNCS
PSPACKAGE PS
***************
*** 3280,3285 ****
--- 3288,3298 ----
CPU=`echo $TARGET | sed 's/-.*//'`
Note "Using $FILLORDER bit order for your $CPU cpu."
+ # SVR4 packaging stuff
+ if [ -z "$PKG_ARCH" ]; then
+ PKG_ARCH=$CPU
+ fi
+
#
# Style of getty support.
#
***************
*** 4126,4131 ****
--- 4139,4153 ----
# util/recvstats.sh script for receive statistics accounting
# util/faxcron.sh script for cleaning up the spooling area (run from cron)
# util/pagesizes client page dimensions database (has default page size)
+ # pkg/cpkginfo SVR4 package stuff (client package info)
+ # pkg/cproto.stub SVR4 package stuff (client prototype stub)
+ # pkg/crequest SVR4 package stuff
+ # pkg/make_proto.sh SVR4 package stuff (script for making prototype files)
+ # pkg/postinstall SVR4 package stuff
+ # pkg/postremove SVR4 package stuff
+ # pkg/spkginfo SVR4 package stuff (server package info)
+ # pkg/sproto.stub SVR4 package stuff (server prototype stub)
+ # pkg/srequest SVR4 package stuff
#
CONF_FILES="
defs
***************
*** 4159,4164 ****
--- 4181,4197 ----
util/faxcron.sh
util/pagesizes
+
+ pkg/Makefile
+ pkg/cpkginfo
+ pkg/cproto.stub
+ pkg/crequest
+ pkg/make_proto.sh
+ pkg/postinstall
+ pkg/postremove
+ pkg/spkginfo
+ pkg/sproto.stub
+ pkg/srequest
"
SedConfigFiles $CONF_FILES
test $DPS = yes && SedConfigFiles dps/Makefile
Attachment Converted: "C:\PROGRAM FILES\EUDORA\Attach\hylapkg.tar.gz"
*** Makefile.in.old Mon Jun 10 15:24:57 1996
--- Makefile.in Thu Sep 25 09:04:18 1997
***************
*** 72,77 ****
--- 72,78 ----
@${ECHO} "= "libtiff; cd libtiff; ${MAKE} clean
@${ECHO} "= "tools; cd tools; ${MAKE} clean
@${ECHO} "= "man; cd man; ${MAKE} clean
+ @${ECHO} "= "pkg; cd pkg; ${MAKE} clean
# -cd contrib/dbs; ${MAKE} clean
# -cd contrib/dbs/xtiff; ${MAKE} clean
***************
*** 82,87 ****
--- 83,93 ----
rm -f man/Makefile
rm -f port/Makefile port/install.sh
rm -f html/Makefile
+ rm -f pkg/Makefile pkg/make_proto.sh pkg/pkginfo
+ rm -f pkg/prototype.stub pkg/request
+
+ package:
+ @${ECHO} "= "pkg; cd pkg; ${MAKE} package
#
# The folllowing rule creates a binary distribution for IRIX.
*** config.site.old Wed Oct 30 12:23:22 1996
--- config.site Tue Sep 23 21:59:44 1997
***************
*** 113,122 ****
--- 113,130 ----
#DIR_GZLIB="../zlib" # directory for libz
#
+ # SVR4 packaging stuff
+ #SYSUID=bin # user ID for pkgadd installs
+ #SYSGID= # group ID for pkgadd installs
+ #PKG_ARCH= # ARCH variable in pkginfo file
+ #PKG_EMAIL=someone@somehost.somedomain # EMAIL variable in pkginfo file
+ #PKG_VENDOR="Your Name Here" # VENDOR variable in pkginfo file
+
# Miscellaneous parameters.
#
#FILLORDER="MS2LSB" # bit order of cpu (MSB2LSB/LSB2MSB)
#MANSCHEME="sysv-source-cat-strip" # manual page installation scheme
+ #
#
# Parameters used when building the software.
*** configure.old Mon Jun 10 15:24:56 1996
--- configure Wed Sep 24 20:55:23 1997
***************
*** 69,74 ****
--- 69,81 ----
: ${MAKEFLAGS=} # unset MAKEFLAGS
RM="rm -f"
+ # SVR4 packaging stuff
+ SYSUID=bin # user ID for pkgadd installs
+ SYSGID= # group ID for pkgadd installs
+ PKG_ARCH= # ARCH variable in pkginfo file
+ PKG_EMAIL=someone@somehost.somedomain # EMAIL variable in pkginfo file
+ PKG_VENDOR="Your Name Here" # VENDOR variable in pkginfo file
+
#
# Error diagnostics that should go to the terminal are
# done with this interface (or cat).
***************
*** 221,226 ****
--- 228,238 ----
fi
exec 5>./config.log # compiler messages and the like
+ Note()
+ {
+ echo "$@" 1>&4
+ }
+
capture()
{
(eval "set -x; $*") >&5 2>&1
***************
*** 1268,1273 ****
--- 1280,1315 ----
# and may be interactively changed.
#
+ #
+ # System installation group ID.
+ #
+ if [ -z "$SYSGID" ]; then
+ case $TARGET in
+ *-aix*) SYSGID=sys;;
+ *bsd*) SYSGID=bin;;
+ *-hpux*) SYSGID=bin;;
+ *-irix*) SYSGID=sys;;
+ *-isc*) SYSGID=sys;;
+ *-linux*) SYSGID=bin;;
+ *-sco*) SYSGID=sys;;
+ *-solaris*) SYSGID=sys;;
+ *-sunos*) SYSGID=bin;;
+ *-sysv4*) SYSGID=sys;;
+ *-ultrix*) SYSGID=bin;;
+ *)
+ SYSGID=sys
+ for i in sys bin; do
+ grep "^${i}:" /etc/group >/dev/null 2>&1 && { SYSGID=$i; break; }
+ done
+ ;;
+ esac
+ fi
+ Note "Using uid $SYSUID and gid $SYSGID for packaging programs."
+
+ if [ -z "$PKG_ARCH" ]; then
+ PKG_ARCH=`echo $TARGET | sed 's/-.*//'`
+ fi
+
Note ""
Note "Selecting default TIFF configuration parameters."
Note ""
***************
*** 1734,1739 ****
--- 1776,1784 ----
/@MANSEDLOCAL@/s;;${MANSEDLOCAL};g
/@MANLIB@/s;;${MANLIB};g
/@MV_F@/s;;${MV_F};g
+ /@PKG_ARCH@/s;;${PKG_ARCH};g
+ /@PKG_EMAIL@/s;;${PKG_EMAIL};g
+ /@PKG_VENDOR@/s;;${PKG_VENDOR};g
/@PORT@/s;;${PORT};g
/@PORTFUNCS@/s;;${PORTFUNCS};g
/@RANLIB@/s;;${RANLIB};g
***************
*** 1743,1748 ****
--- 1788,1795 ----
/@SRCDIR@/s;;${SRCDIR};g
/@RELSRCDIR@/s;;`relativize ${SRCDIR}`;g
/@STRIP@/s;;${STRIP};g
+ /@SYSGID@/s;;${SYSGID};g
+ /@SYSUID@/s;;${SYSUID};g
/@TARGET@/s;;${TARGET};g
/@TIFFLIBREF@/s;;${TIFFLIBREF};g
/@VERSION@/s;;${VERSION};g
***************
*** 1814,1819 ****
--- 1861,1873 ----
test $HTML = yes && CONF_FILES="$CONF_FILES html/Makefile"
test $PORT = yes && CONF_FILES="$CONF_FILES port/Makefile"
fi
+ CONF_FILES="$CONF_FILES
+ pkg/Makefile
+ pkg/make_proto.sh
+ pkg/pkginfo
+ pkg/prototype.stub
+ pkg/request
+ "
SedConfigFiles $CONF_FILES
Note "Done."
Attachment Converted: "C:\PROGRAM FILES\EUDORA\Attach\tiffpkg.tar.gz"