~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to lib/tdb/release-script.sh

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
if [ "$1" = "" ]; then
4
 
    echo "Please provide version string, eg: 1.2.0"
5
 
    exit 1
6
 
fi
7
 
 
8
 
if [ ! -d "lib/tdb" ]; then
9
 
    echo "Run this script from the samba base directory."
10
 
    exit 1
11
 
fi
12
 
 
13
 
git clean -f -x -d lib/tdb
14
 
git clean -f -x -d lib/replace
15
 
 
16
 
curbranch=`git branch |grep "^*" | tr -d "* "`
17
 
 
18
 
version=$1
19
 
strver=`echo ${version} | tr "." "-"`
20
 
 
21
 
# Checkout the release tag
22
 
git branch -f tdb-release-script-${strver} tdb-${strver}
23
 
if [ ! "$?" = "0" ];  then
24
 
    echo "Unable to checkout tdb-${strver} release"
25
 
    exit 1
26
 
fi
27
 
 
28
 
git checkout tdb-release-script-${strver}
29
 
 
30
 
# Test configure agrees with us
31
 
confver=`grep "^AC_INIT" lib/tdb/configure.ac | tr -d "AC_INIT(tdb, " | tr -d ")"`
32
 
if [ ! "$confver" = "$version" ]; then
33
 
    echo "Wrong version, requested release for ${version}, found ${confver}"
34
 
    exit 1
35
 
fi
36
 
 
37
 
# Now build tarball
38
 
cp -a lib/tdb tdb-${version}
39
 
cp -a lib/replace tdb-${version}/libreplace
40
 
pushd tdb-${version}
41
 
./autogen.sh
42
 
popd
43
 
tar cvzf tdb-${version}.tar.gz tdb-${version}
44
 
rm -fr tdb-${version}
45
 
 
46
 
#Clean up
47
 
git checkout $curbranch
48
 
git branch -d tdb-release-script-${strver}