File: package-prep

package info (click to toggle)
samba 3.0.24-6etch10
  • links: PTS
  • area: main
  • in suites: etch
  • size: 49,836 kB
  • ctags: 44,390
  • sloc: ansic: 335,711; sh: 8,133; perl: 7,045; makefile: 3,107; python: 2,370; exp: 1,147; yacc: 881; awk: 486; csh: 58; sed: 45
file content (51 lines) | stat: -rwxr-xr-x 1,256 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/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;
	NOWDIR=`pwd`;
		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
rm -f ../source/bin/*
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.