| Last change
 on this file since 202 was             1, checked in by Paul Smedley, 19 years ago | 
        
          | 
Initial code import
 | 
        
          | File size:
            1.2 KB | 
      
      
| Line |  | 
|---|
| 1 | #!/bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | # Extract the skeleton directory structure into which samba will be installed. | 
|---|
| 4 | tar xvf skeleton.tar | 
|---|
| 5 |  | 
|---|
| 6 | # Now link the skeleton directory structure into the final install tree. | 
|---|
| 7 | ( cd /usr/local; | 
|---|
| 8 | mv man man.orig; | 
|---|
| 9 | mv samba samba.orig; | 
|---|
| 10 | NOWDIR=`pwd`; | 
|---|
| 11 | ln -sf $NOWDIR/usr/local/man man; | 
|---|
| 12 | ln -sf $NOWDIR/usr/local/samba samba; ) | 
|---|
| 13 |  | 
|---|
| 14 | # Unpack the master source tarball | 
|---|
| 15 | gunzip samba-X.X.X.tar.gz | 
|---|
| 16 | tar xvf samba-X.X.X.tar | 
|---|
| 17 |  | 
|---|
| 18 | # Now build the binary files | 
|---|
| 19 | cd samba-X.X.X/source | 
|---|
| 20 | ./configure | 
|---|
| 21 | make | 
|---|
| 22 | make install | 
|---|
| 23 |  | 
|---|
| 24 | # Install into the packaging tree that full reflects the final install tree | 
|---|
| 25 | cd $NOWDIR/usr/local/samba | 
|---|
| 26 | cp -pr man ../ | 
|---|
| 27 | rm -rf man | 
|---|
| 28 | cd $NOWDIR | 
|---|
| 29 |  | 
|---|
| 30 | # Create the package tarball | 
|---|
| 31 | tar cvf install.tar usr var | 
|---|
| 32 |  | 
|---|
| 33 | # Clean up original sources preserving all configured files | 
|---|
| 34 | #        Note: This will allow installers to check build options | 
|---|
| 35 | cd samba-X.X.X/source | 
|---|
| 36 | rm -f ../source/bin/* | 
|---|
| 37 | make clean | 
|---|
| 38 | cd ../.. | 
|---|
| 39 | tar cvf samba-X.X.X.tar samba-X.X.X | 
|---|
| 40 | rm -rf samba-X.X.X | 
|---|
| 41 | rm -rf usr var | 
|---|
| 42 | cd .. | 
|---|
| 43 | tar cvf samba-X.X.X-OS-Version-CPU.tar samba-X.X.X | 
|---|
| 44 | gzip samba-X.X.X-OS-Version-CPU.tar | 
|---|
| 45 |  | 
|---|
| 46 | # We now have the distribution package, now restore our runtime system | 
|---|
| 47 | cd samba-X.X.X | 
|---|
| 48 | tar xcf install.tar | 
|---|
| 49 |  | 
|---|
| 50 | # Please test operation before shipping the binary distribution package | 
|---|
| 51 | # to the samba-team. | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.