Tuesday, August 09, 2022

Re: [update] geo/traccar 5.3

On 8/9/22 13:25, Stuart Henderson wrote:
> On 2022/08/09 10:05, Renaud Allard wrote:
>> do-install:
>> ${INSTALL_DATA_DIR} ${PREFIX}/share/traccar/
>> - cd ${WRKSRC}; cp -r conf lib schema templates web tracker-server.jar \
>> + cd ${WRKSRC}; cp -r conf lib schema templates modern legacy tracker-server.jar \
>
> Rather than extending this line further, I wondered about doing this
> instead (and @comment'ing README.txt/data in pkg/PLIST), shorter Makefile
> lines, and picks up other possible future additions automatically.
> What do you think?
>

Yes, that might be a good idea. I doubt they will add more stuff there
anytime soon, but it would indeed catch the rest.

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/geo/traccar/Makefile,v
> retrieving revision 1.24
> diff -u -p -r1.24 Makefile
> --- Makefile 26 Jul 2022 11:35:53 -0000 1.24
> +++ Makefile 9 Aug 2022 11:23:44 -0000
> @@ -1,9 +1,8 @@
> COMMENT = modern GPS tracking platform
> -V = 5.2
> +V = 5.3
> PKGNAME = traccar-${V}
> DISTNAME = traccar-other-${V}
> EXTRACT_SUFX = .zip
> -WRKDIST = ${WRKDIR}
>
> CATEGORIES = geo
> HOMEPAGE = https://www.traccar.org/
> @@ -18,7 +17,10 @@ MASTER_SITES = https://github.com/tracca
> MODULES = java
> MODJAVA_VER = 11+
>
> -RUN_DEPENDS= java/javaPathHelper
> +RUN_DEPENDS = java/javaPathHelper
> +
> +EXTRACT_CASES += traccar*.zip) \
> + ${UNZIP} -oq ${FULLDISTDIR}/$$archive -d ${WRKDIST};;
>
> NO_BUILD = Yes
> NO_TEST = Yes
> @@ -28,8 +30,7 @@ do-configure:
>
> do-install:
> ${INSTALL_DATA_DIR} ${PREFIX}/share/traccar/
> - cd ${WRKSRC}; cp -r conf lib schema templates web tracker-server.jar \
> - ${PREFIX}/share/traccar/
> + cp -r ${WRKSRC}/* ${PREFIX}/share/traccar/
> rm ${PREFIX}/share/traccar/conf/{default,traccar}.xml.*
>
> .include <bsd.port.mk>

No comments:

Post a Comment