Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2014 23:03:43 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        olli hauer <ohauer@gmx.de>, Sahil Tandon <sahil@tandon.net>
Cc:        FreeBSD Ports <ports@FreeBSD.org>
Subject:   Re: A child Postfix port with TLS enabled by default
Message-ID:  <5339D82F.6030808@gmx.de>
In-Reply-To: <5338A785.6010105@gmx.de>
References:  <20140330192011.GA92763@jubz> <53387329.4070601@gmx.de> <20140330213558.GA93840@jubz> <5338A785.6010105@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--kSo1QCfUFMEcN8D5QITbjjmXmoqghR0dH
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Am 31.03.2014 01:23, schrieb olli hauer:
> On 2014-03-30 23:35, Sahil Tandon wrote:
>> On Sun, 2014-03-30 at 21:40:25 +0200, olli hauer wrote:
>>
>>> long time ago I shaped a patch for postfix-2.10 to support staging,
>>> if required I can create a new patch for 2.11.
>>
>> Could you send a patch vs. mail/postfix? Don't be shy in annotating
>> certain parts of the diff in case the rationale might not be immediate=
ly
>> clear. :)
>>
>> Thanks!
>>
>=20
> Hi Sahil,
>=20
> the following patches should work.
>=20
> http://people.freebsd.org/~ohauer/diffs/stage/stage_postfix_20140331.di=
ff
> http://people.freebsd.org/~ohauer/diffs/stage/stage_postfix210_20140331=
=2Ediff
>=20
> Makefile changes:
> - s/CONFLICTS/CONFLICTS_INSTALL/
>   allow users to build postfix without removing during version change e=
=2Eg 210->211
> - add DOCS to OPTIONS
> - remove all MANx from Makefile, will be handled during stage
> - move INST_BASE section up so vars are set before first usage
> - if INST_BASE is set create ${STAGEDIR}/etc/rc.d else rc script instal=
lation will fail
> - use install_root=3D${STAGEDIR}/
> - remove staged postfix/(main|master).cf else existing config files are=
 replaced
>=20
> pkg-plist:
> - list all manpages and add PLIST prefix %%BMAN%%
>   with INST_BASE an additional share/ is required
>=20
>=20
> Take care with the command `make makeplist`, 'etc/postfix' should be no=
r replaced
> with %%ETCDIR%% else INST_BASE is broken.
>=20
>=20
> Please test yourself before committing, hopefully I've cached all cases=
 ;)

There are a few items missing that you'd see under a DEVELOPER=3Dyes regi=
me.

These snippets for Makefile should fix them:

1. These two lines replace USES=3Dperl5

USES=3D           perl5 shebangfix
SHEBANG_FILES=3D  auxiliary/qshape/qshape.pl


2. This should see to stripping the DAEMONDIR and sbin stuff, to be
added in post-install:

        # Strip executables unless in debug mode:
        ${FIND} ${STAGEDIR}${PREFIX}/sbin/ ${STAGEDIR}${DAEMONDIR}/ \
		-name '*[-.]*' \
		-or \( -type f -exec ${STRIP_CMD} '{}' + \)
        ${STRIP_CMD} ${STAGEDIR}${DAEMONDIR}/trivial-rewrite



--kSo1QCfUFMEcN8D5QITbjjmXmoqghR0dH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlM52DYACgkQvmGDOQUufZUMGgCg0028L4MUt39dd59dRdhOCdcU
be4AoKMmqZowIS+XzqTxPaGktrverxhV
=8he5
-----END PGP SIGNATURE-----

--kSo1QCfUFMEcN8D5QITbjjmXmoqghR0dH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5339D82F.6030808>