2011-05-08 10:26:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.6 2011/05/08 08:26:43 tnn Exp $
|
2010-08-26 16:26:18 +02:00
|
|
|
#
|
|
|
|
|
2011-04-18 18:19:47 +02:00
|
|
|
DISTNAME= glusterfs-3.1.4
|
2011-04-26 18:06:32 +02:00
|
|
|
PKGREVISION= 1
|
2010-08-26 16:26:18 +02:00
|
|
|
CATEGORIES= filesystems
|
2011-04-18 18:19:47 +02:00
|
|
|
MASTER_SITES= http://download.gluster.com/pub/gluster/glusterfs/3.1/LATEST/
|
2010-08-26 16:26:18 +02:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2011-05-08 10:26:43 +02:00
|
|
|
HOMEPAGE= http://www.gluster.org/
|
2010-08-26 16:26:18 +02:00
|
|
|
COMMENT= Cluster filesystem
|
|
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2010-10-02 09:02:40 +02:00
|
|
|
USE_TOOLS+= flex bison
|
|
|
|
|
2011-02-25 10:47:18 +01:00
|
|
|
PYTHON_VERSIONS_ACCEPTED= 27 26 25
|
2010-08-26 16:26:18 +02:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
|
|
|
2011-04-18 18:19:47 +02:00
|
|
|
# Make sure we do not attept to link with -lfl
|
|
|
|
# Only libfl.a is available, and libtool wants libfl.so
|
|
|
|
MAKE_FLAGS+= LEXLIB=""
|
|
|
|
MAKE_FLAGS+= libglusterfs_la_LIBADD=""
|
|
|
|
MAKE_ENV+= AM_MAKEFLAGS=${MAKE_FLAGS:Q}
|
|
|
|
|
2010-08-26 16:26:18 +02:00
|
|
|
SUBST_CLASSES+= py
|
|
|
|
SUBST_STAGE.py= post-build
|
|
|
|
SUBST_FILES.py= extras/volgen/glusterfs-volgen
|
|
|
|
SUBST_SED.py= -e "s,/usr/bin/python,${PYTHONBIN},g"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= bash
|
|
|
|
SUBST_STAGE.bash= post-build
|
|
|
|
SUBST_FILES.bash= xlators/mount/fuse/utils/mount.glusterfs
|
|
|
|
SUBST_SED.bash= -e "s,/bin/bash,/bin/sh,g"
|
|
|
|
|
2011-04-18 18:19:47 +02:00
|
|
|
SUBST_CLASSES+= etc
|
|
|
|
SUBST_STAGE.etc= pre-build
|
|
|
|
SUBST_FILES.etc+= cli/src/cli-rpc-ops.c
|
|
|
|
SUBST_FILES.etc+= libglusterfs/src/compat.h
|
|
|
|
SUBST_FILES.etc+= xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
|
SUBST_FILES.etc+= xlators/mgmt/glusterd/src/glusterd.h
|
|
|
|
SUBST_FILES.etc+= doc/examples/replicate.vol
|
|
|
|
SUBST_FILES.etc+= doc/examples/protocol-server.vol
|
|
|
|
SUBST_FILES.etc+= doc/examples/unify.vol
|
|
|
|
SUBST_FILES.etc+= doc/examples/stripe.vol
|
|
|
|
SUBST_FILES.etc+= doc/glusterd.vol
|
|
|
|
SUBST_FILES.etc+= doc/glusterfsd.8
|
|
|
|
SUBST_FILES.etc+= doc/glusterfsd.vol.sample
|
|
|
|
SUBST_SED.etc= -e "s,/etc/gluster,${PREFIX}/etc/gluster,g"
|
2010-08-26 16:26:18 +02:00
|
|
|
|
|
|
|
REPLACE_PYTHON+= ${WRKSRC}/extras/volgen/glusterfs-volgen
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/etc/glusterfs
|
|
|
|
CONF_FILES+= ${EGDIR}/glusterfs.vol.sample ${EGDIR}/glusterfs.vol
|
|
|
|
CONF_FILES+= ${EGDIR}/glusterfsd.vol.sample ${EGDIR}/glusterfsd.vol
|
2011-04-18 18:19:47 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/glusterd.vol ${EGDIR}/glusterd.vol
|
2010-08-26 16:26:18 +02:00
|
|
|
OWN_DIRS+= ${VARBASE}/glusterfs
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2011-04-18 18:19:47 +02:00
|
|
|
RCD_SCRIPTS= glusterfsd glusterd
|
|
|
|
|
2010-08-26 16:26:18 +02:00
|
|
|
post-install:
|
|
|
|
cp ${DESTDIR}/sbin/mount.glusterfs ${DESTDIR}/${PREFIX}/sbin/
|
2011-04-18 18:19:47 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/xattr-init.sh \
|
|
|
|
${DESTDIR}/${PREFIX}/etc/glusterfs
|
2010-08-26 16:26:18 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
.include "../../filesystems/perfuse/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|