1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/packaging/Mandrake/makerpms.sh.tmpl
Gerald Carter 62ce28e8d5 sync with SAMBA_2_2
(This used to be commit 81b3af71d5)
2001-06-01 11:56:08 +00:00

17 lines
489 B
Bash

#!/bin/sh
# Copyright (C) 1998 John H Terpstra, 1999 K Spoon
#
SPECDIR=/usr/src/RPM/SPECS
SRCDIR=/usr/src/RPM/SOURCES
USERID=`id -u`
GRPID=`id -g`
VERSION='PVERSION'
( cd ../../.. ; mv samba samba-$VERSION; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-$VERSION )
( cd ../../.. ; tar --exclude=CVS -czvf ${SRCDIR}/samba-$VERSION.tar.gz samba-$VERSION )
( cd ../../.. ; mv samba-$VERSION samba )
cp -a *.spec $SPECDIR
cp -a *.patch smb.* samba.log $SRCDIR
cd $SPECDIR
rpm -ba -v samba2.spec