~ubuntu-branches/ubuntu/precise/samba/precise

« back to all changes in this revision

Viewing changes to source4/heimdal_build/et_compile_wrapper.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
1
#!/bin/sh
2
2
#
3
3
 
4
 
SELF=$0
5
 
SELFDIR=`dirname ${SELF}`
6
 
 
7
 
BUILDDIR=$1
8
 
DESTDIR=$2
9
 
 
10
 
CMD=$3
11
 
FILE=$4
12
 
SOURCE=$5
13
 
shift 5
14
 
 
15
 
test -z "${BUILDDIR}" && {
16
 
        echo "${SELF}:BUILDDIR: '${BUILDDIR}'" >&2;
17
 
        exit 1;
18
 
}
 
4
SELF="$0"
 
5
SELFDIR=`dirname "${SELF}"`
 
6
 
 
7
DESTDIR="$1"
 
8
CMD="$2"
 
9
FILE="$3"
 
10
SOURCE="$4"
 
11
shift 4
19
12
 
20
13
test -z "${DESTDIR}" && {
21
14
        echo "${SELF}:DESTDIR: '${DESTDIR}'" >&2;
37
30
        exit 1;
38
31
}
39
32
 
40
 
CURDIR=`pwd`
41
 
 
42
 
cd ${BUILDDIR} && {
43
 
        ABS_BUILDDIR=`pwd`
44
 
        cd ${CURDIR}
45
 
} || {
46
 
        echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
47
 
        exit 1;
48
 
}
49
 
 
50
 
cd ${DESTDIR} && {
51
 
        ${ABS_BUILDDIR}/${CMD} ${FILE} >&2 || exit 1;
52
 
        cd ${CURDIR}
 
33
CURDIR="`pwd`"
 
34
 
 
35
cd "${DESTDIR}" && {
 
36
        # Remove older copies beforehand - MIT's compile_et uses odd permissions for these
 
37
        # files, which makes Heimdal's compile_et fail mysteriously when writing to them.
 
38
        rm -f `basename "${FILE}" .et`.c
 
39
        rm -f `basename "${FILE}" .et`.h
 
40
        "${CMD}" "${FILE}" >&2 || exit 1;
 
41
        cd "${CURDIR}"
53
42
        TMP="${SOURCE}.$$"
54
 
        mv ${SOURCE} ${TMP} && {
55
 
                echo "#include \"config.h\"" > ${SOURCE} && {
56
 
                        cat ${TMP} >> ${SOURCE}
 
43
        mv "${SOURCE}" "${TMP}" && {
 
44
                echo "#include \"config.h\"" > "${SOURCE}" && {
 
45
                        cat "${TMP}" >> "${SOURCE}"
57
46
                }
58
47
        }
59
 
        rm ${TMP}
 
48
        rm -f "${TMP}"
60
49
} || {
61
 
        echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
 
50
        echo "${SELF}:cannot cd into '${DESTDIR}'" >&2;
62
51
        exit 1;
63
52
}
64
53