Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 02:24:52 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Diane Bruce <db@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r337826 - head/comms/chu
Message-ID:  <20131228012452.GI40122@ithaqua.etoilebsd.net>
In-Reply-To: <201312280110.rBS1Atev014777@svn.freebsd.org>
References:  <201312280110.rBS1Atev014777@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--1IYcr18XUmgwOrO2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Dec 28, 2013 at 01:10:55AM +0000, Diane Bruce wrote:
> Author: db
> Date: Sat Dec 28 01:10:54 2013
> New Revision: 337826
> URL: http://svnweb.freebsd.org/changeset/ports/337826
>=20
> Log:
>   - convert to stage
>   - add LICENSE
>=20
> Modified:
>   head/comms/chu/Makefile   (contents, props changed)
>   head/comms/chu/pkg-plist   (contents, props changed)
>=20
> Modified: head/comms/chu/Makefile
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/comms/chu/Makefile	Fri Dec 27 23:49:33 2013	(r337825)
> +++ head/comms/chu/Makefile	Sat Dec 28 01:10:54 2013	(r337826)
> @@ -11,10 +11,9 @@ MASTER_SITE_SUBDIR=3D	system/admin/time
>  MAINTAINER=3D	db@FreeBSD.org
>  COMMENT=3D	Synchronise computer clock to CHU radio station
> =20
> -MAN8=3D	chu.8
> +LICENSE=3D	GPLv1
> =20
> -NO_STAGE=3D	yes
> -.include <bsd.port.options.mk>
> +.include <bsd.port.pre.mk>
> =20
>  do-extract:
>  	@${RM} -rf ${WRKDIR}
> @@ -26,30 +25,25 @@ do-extract:
>  			exit 1; \
>  		fi \
>  	done
> -	${GZIP_CMD} -d ${WRKSRC}/testsignal.gz
> +	@${GZIP_CMD} -d ${WRKSRC}/testsignal.gz
> =20
>  post-patch:
> -	${REINPLACE_CMD} -e 's|/etc/chu|${PREFIX}/etc/chu|g' ${WRKSRC}/chu.c ${=
WRKSRC}/chu.8
> -	${REINPLACE_CMD} -e 's|/sbin/chu|${PREFIX}/sbin/chu|g' ${WRKSRC}/chu.8
> +	@${REINPLACE_CMD} -e 's|/etc/chu|${PREFIX}/etc/chu|g' ${WRKSRC}/chu.c $=
{WRKSRC}/chu.8
> +	@${REINPLACE_CMD} -e 's|/sbin/chu|${PREFIX}/sbin/chu|g' ${WRKSRC}/chu.8
>  	@${REINPLACE_CMD} -e 's|gcc -O2|${CC} ${CFLAGS}|g' ${WRKSRC}/Makefile
> =20
>  do-install:
> -	${INSTALL_PROGRAM} ${WRKSRC}/chu ${PREFIX}/sbin
> -	${MKDIR} ${DATADIR}
> -	${INSTALL_DATA} ${WRKSRC}/testsignal ${DATADIR}
> -	${INSTALL_MAN} ${WRKSRC}/chu.8 ${PREFIX}/man/man8
> -.if	${PORT_OPTIONS:MDOCS}
> -	${MKDIR} ${DOCSDIR}
> +	${INSTALL_PROGRAM} ${WRKSRC}/chu ${STAGEDIR}${PREFIX}/sbin
> +	${MKDIR} ${STAGEDIR}${DATADIR}
> +	${INSTALL_DATA} ${WRKSRC}/testsignal ${STAGEDIR}${DATADIR}
> +	${INSTALL_MAN} ${WRKSRC}/chu.8 ${STAGEDIR}${PREFIX}/man/man8
> +	${MKDIR} ${STAGEDIR}${DOCSDIR}
>  .for	d in ${WRKSRC}/COPYING \
>  	${WRKSRC}/TESTING \
>  	${WRKSRC}/chu.html \
>  	${WRKSRC}/chuman.html \
>  	${WRKSRC}/ntp.html
> -	${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR}
> +	${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
>  .endfor
> -	@${ECHO} ""
> -	@${ECHO} "chu docs installed in ${DOCSDIR}"
> -	@${ECHO} ""
> -.endif
> =20
> -.include <bsd.port.mk>
> +.include <bsd.port.post.mk>
>=20
> Modified: head/comms/chu/pkg-plist
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/comms/chu/pkg-plist	Fri Dec 27 23:49:33 2013	(r337825)
> +++ head/comms/chu/pkg-plist	Sat Dec 28 01:10:54 2013	(r337826)
> @@ -5,5 +5,6 @@ sbin/chu
>  %%PORTDOCS%%%%DOCSDIR%%/chuman.html
>  %%PORTDOCS%%%%DOCSDIR%%/ntp.html
>  %%PORTDOCS%%%%DOCSDIR%%/TESTING
> +man/man8/chu.8.gz
>  @dirrm %%DATADIR%%
>  %%PORTDOCS%%@dirrm %%DOCSDIR%%

pre.mk/post.mk seems useless here bsd.port.mk should be enough am I missing
something?

regards,
Bapt

--1IYcr18XUmgwOrO2
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (FreeBSD)

iEYEARECAAYFAlK+KGQACgkQ8kTtMUmk6Ew+9gCgjHZEeMXk+mkCpyN16EEVbhXE
vqUAoI+YjpFrcE0Rh3usaAzFwhT0a700
=WvTL
-----END PGP SIGNATURE-----

--1IYcr18XUmgwOrO2--



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