diff options
author | John Terpstra <jht@samba.org> | 1998-11-16 12:21:02 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 1998-11-16 12:21:02 +0000 |
commit | 7491c291ff93af0e7fe214e4af7abd5bb934b18a (patch) | |
tree | c383a6eb7d0d3eb50c1b5d0f5ac1a994662232fe /packaging/Example/package-prep | |
parent | 7ce840a0edbba91befbbb0a6616d0ec4db95166f (diff) | |
download | samba-7491c291ff93af0e7fe214e4af7abd5bb934b18a.tar.gz samba-7491c291ff93af0e7fe214e4af7abd5bb934b18a.tar.bz2 samba-7491c291ff93af0e7fe214e4af7abd5bb934b18a.zip |
Added Example binary packaging instructions.
(This used to be commit 4c60314b050324b356f38f648f2730cb1d39be4c)
Diffstat (limited to 'packaging/Example/package-prep')
-rwxr-xr-x | packaging/Example/package-prep | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/packaging/Example/package-prep b/packaging/Example/package-prep new file mode 100755 index 0000000000..5e5834a6d3 --- /dev/null +++ b/packaging/Example/package-prep @@ -0,0 +1,52 @@ +#!/bin/sh + +# Extract the skeleton directory structure into which samba will be installed. +tar xvf skeleton.tar + +# Now link the skeleton directory structure into the final install tree. +( cd /usr/local; + mv man man.orig; + mv samba samba.orig; + DIRNOW=`pwd1`; + ln -sf $NOWDIR/usr/local/man man; + ln -sf $NOWDIR/usr/local/samba samba; ) + +# Unpack the master source tarball +gunzip samba-X.X.X.tar.gz +tar xvf samba-X.X.X.tar + +# Now build the binary files +cd samba-X.X.X/source +./configure +make +make install + +# Install into the packaging tree that full reflects the final install tree +cd $NOWDIR/usr/local/samba +cp -pr man ../ +rm -rf man +cd $NOWDIR + +# Create the package tarball +tar cvf install.tar usr var + +# Clean up original sources preserving all configured files +# Note: This will allow installers to check build options +cd samba-X.X.X/source/bin +rm -f * +cd .. +make clean +cd ../.. +tar cvf samba-X.X.X.tar samba-X.X.X +rm -rf samba-X.X.X +rm -rf usr var +cd .. +tar cvf samba-X.X.X-OS-Version-CPU.tar samba-X.X.X +gzip samba-X.X.X-OS-Version-CPU.tar + +# We now have the distribution package, now restore our runtime system +cd samba-X.X.X +tar xcf install.tar + +# Please test operation before shipping the binary distribution package +# to the samba-team. |