[Pkg-samba-maint] Help needed with Samba 4.0.5 package

Andrew Bartlett abartlet at samba.org
Thu May 9 05:13:11 UTC 2013


Firstly, has anyone else reproduced my package build yet?  

I have the package at:

git://git.samba.org/samba-debian samba-full-package-2

I also have the unsigned packages at http://abartlet.net/samba4-debian/

When I install the built package (which now include even more of the
original samba package), I get:

Setting up samba (2:4.0.5+dfsg1-2.0) ...
Generating /etc/default/samba...
sed: -e expression #1, char 59: unknown option to `s'
dpkg: error processing samba (--install):
 subprocess installed post-installation script returned error exit
status 1

I just don't grok sed and debian scripts enough.  The failing script
seems to be:


# Generate configuration file if it does not exist, using default
values.
[ -r "${INITCONFFILE}" ] || {
	echo Generating ${INITCONFFILE}... >&2
	cat >${INITCONFFILE} <<'EOFMAGICNUMBER1234'
# Defaults for samba initscript
# sourced by /etc/init.d/samba
# installed at /etc/default/samba by the maintainer scripts
#

#
# This is a POSIX shell fragment
#

# How should Samba (smbd) run? Possible values are "daemons"
#	or "inetd".
RUN_MODE=""
EOFMAGICNUMBER1234
}

# ------------------------- Debconf questions start
---------------------

# Run Samba as daemons or from inetd?
db_get samba/run_mode || true
RUN_MODE="${RET}"

TMPFILE=/etc/default/samba.dpkg-tmp
sed -e "s/^[[:space:]]*RUN_MODE[[:space:]]*=.*/RUN_MODE=
\"${RUN_MODE}\"/" \
        < ${INITCONFFILE} >${TMPFILE}
chmod a+r ${TMPFILE}
mv -f ${TMPFILE} ${INITCONFFILE}

# Done with debconf now.
db_stop

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org





More information about the Pkg-samba-maint mailing list