Files
ports/net/jotta-cli/Makefile
T
Trenton Schulz 6d180ad915 net/jotta-cli: Fix permissions for jotta-cli
The ownership for @LOCALBASE/etc/jottad were wrong (they need to be
owned by jottad:jottad.

As I had updated the portrevision, I fixed some PORTLINT issues as
well.

MFH:		2023Q1
PR:		268601
Reported by:	Vidar Karlsen <vidar@karlsen.tech>
Approved by:	flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38685
2023-02-21 00:36:40 +01:00

42 lines
1.3 KiB
Makefile

PORTNAME= jotta-cli
DISTVERSION= 0.14.60923
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= https://repo.jotta.us/archives/freebsd/${ARCH:S|amd64|amd64|:S|i386|386|}/
DISTNAME= ${PORTNAME}-${PORTVERSION}_freebsd_${ARCH:S|amd64|amd64|:S|i386|386|}
MAINTAINER= trueos@norwegianrockcat.com
COMMENT= Jotta Cloud Daemon and Command-Line Interface
WWW= https://www.jottacloud.com
LICENSE= UNKNOWN
LICENSE_NAME= "Jottacloud Terms and Service"
LICENSE_TEXT= "JottaCloud has its own terms and conditions available at https://www.jottacloud.com/en/terms.html"
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64 i386
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
RESTRICTED= yes
USE_RC_SUBR= jottad
NO_BUILD= yes
SUB_FILES= pkg-message \
jottad
USERS= jottad
GROUPS= jottad
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/jottad
${INSTALL_SCRIPT} ${WRKDIR}/jottad ${STAGEDIR}${PREFIX}/etc/rc.d/jottad
${INSTALL_PROGRAM} ${WRKDIR}/usr/bin/jotta-cli ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKDIR}/usr/bin/jottad ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKDIR}/etc/jottad/config.ini ${STAGEDIR}${PREFIX}/etc/jottad/config.ini.sample
post-install:
${MKDIR} ${STAGEDIR}/var/lib/jottad
.include <bsd.port.mk>