[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / sfs

File: [cvs.NetBSD.org] / pkgsrc / security / sfs / Attic / Makefile (download)

Revision 1.42, Sat Apr 6 20:27:28 2013 UTC (10 years, 11 months ago) by rodent
Branch: MAIN
Changes since 1.41: +2 -2 lines

Resolves:
"INFO_FILES should be set to YES or yes."
"Packages that install info files should set INFO_FILES."
Makefile and PLIST warning, respectively.

# $NetBSD: Makefile,v 1.42 2013/04/06 20:27:28 rodent Exp $
#

DISTNAME=	sfs-0.7.2
PKGREVISION=	13
CATEGORIES=	net security
MASTER_SITES=	${MASTER_SITE_GENTOO:=distfiles/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.fs.net/sfswww/
COMMENT=	Secure, global, self-certifying network file system
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes

SFS_USER?=	sfs
SFS_GROUP?=	sfs

CONFIGURE_ARGS+=	--with-sfsuser=${SFS_USER}
CONFIGURE_ARGS+=	--with-sfsgroup=${SFS_GROUP}
CONFIGURE_ARGS+=	--with-etcdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--with-sfsdir=${SFS_ROOT:Q}
CONFIGURE_ARGS+=	--disable-uvfs

USE_LANGUAGES=	c c++
USE_TOOLS+=	makeinfo perl:run lex

INFO_FILES=	yes

PKG_SYSCONFSUBDIR=	sfs
PKG_GROUPS=		${SFS_GROUP}
PKG_USERS=		${SFS_USER}:${SFS_GROUP}
PKG_GECOS.${SFS_USER}=	Self-certifying file system pseudo-user

RCD_SCRIPTS=	sfscd sfssd

.include "../../mk/bsd.prefs.mk"

SFSDIR?=	${VARBASE}/sfs
SFS_ROOT=	${SFSDIR}

OWN_DIRS_PERMS=	${SFS_ROOT} ${SFS_USER} ${SFS_GROUP} 555

SFSEXAMPLEDIR=	${PREFIX}/share/examples/sfs

MESSAGE_SUBST+=	SFSDIR=${SFS_ROOT} SFSEXAMPLEDIR=${SFSEXAMPLEDIR}

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${SFSEXAMPLEDIR}
	@${SED} -e 's|@SFSDIR@|${SFS_ROOT}|g' ${FILESDIR}/sfsrwsd_config.sample \
		> ${DESTDIR}${SFSEXAMPLEDIR}/sfsrwsd_config.sample

.include "../../devel/gmp/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"