2014-08-14 00:37:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.43 2014/08/13 22:37:37 joerg Exp $
|
2010-08-26 16:26:18 +02:00
|
|
|
|
2014-04-18 10:31:20 +02:00
|
|
|
DISTNAME= glusterfs-3.5.0
|
2014-08-14 00:37:37 +02:00
|
|
|
PKGREVISION= 4
|
2010-08-26 16:26:18 +02:00
|
|
|
CATEGORIES= filesystems
|
2014-04-18 10:31:20 +02:00
|
|
|
MASTER_SITES= http://bits.gluster.org/pub/gluster/glusterfs/src/
|
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
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2010-10-02 09:02:40 +02:00
|
|
|
USE_TOOLS+= flex bison
|
|
|
|
|
2013-09-08 05:38:52 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-fusermount
|
2010-08-26 16:26:18 +02:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
2012-03-28 16:24:59 +02:00
|
|
|
CONFIGURE_ARGS+= CFLAGS=${CFLAGS:M*:Q}\ -DDEBUG
|
2011-08-20 03:13:28 +02:00
|
|
|
|
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}
|
|
|
|
|
2014-04-18 10:31:20 +02:00
|
|
|
REPLACE_PYTHON= api/examples/gfapi.py
|
|
|
|
REPLACE_PYTHON+= contrib/ipaddr-py/ipaddr.py
|
|
|
|
REPLACE_PYTHON+= gen-headers.py
|
|
|
|
REPLACE_PYTHON+= tests/bugs/overlap.py
|
|
|
|
REPLACE_PYTHON+= tests/utils/create-files.py
|
2010-08-26 16:26:18 +02:00
|
|
|
|
2011-05-12 12:28:47 +02:00
|
|
|
SUBST_CLASSES+= mtab
|
|
|
|
SUBST_STAGE.mtab= post-build
|
2014-04-18 10:31:20 +02:00
|
|
|
SUBST_FILES.mtab= doc/mount.glusterfs.8
|
|
|
|
SUBST_FILES.mtab= libglusterfs/src/compat.h
|
|
|
|
SUBST_FILES.mtab= xlators/mount/fuse/utils/mount.glusterfs.in
|
2011-05-12 12:28:47 +02:00
|
|
|
SUBST_SED.mtab= -e "s,/etc/mtab,/proc/mounts,g"
|
|
|
|
|
2011-04-18 18:19:47 +02:00
|
|
|
SUBST_CLASSES+= etc
|
|
|
|
SUBST_STAGE.etc= pre-build
|
2014-04-18 10:31:20 +02:00
|
|
|
SUBST_FILES.etc+= libglusterfs/src/logging.c
|
|
|
|
SUBST_FILES.etc+= extras/ocf/volume
|
|
|
|
SUBST_FILES.etc+= doc/glusterfsd.8
|
2011-04-18 18:19:47 +02:00
|
|
|
SUBST_SED.etc= -e "s,/etc/gluster,${PREFIX}/etc/gluster,g"
|
2010-08-26 16:26:18 +02:00
|
|
|
|
2011-06-06 17:53:13 +02:00
|
|
|
SUBST_CLASSES+= vol
|
|
|
|
SUBST_STAGE.vol= post-build
|
2014-04-18 10:31:20 +02:00
|
|
|
SUBST_FILES.vol= extras/Makefile
|
2011-06-06 17:53:13 +02:00
|
|
|
SUBST_SED.vol= -e "s/glusterd.vol/glusterd.vol.sample/g"
|
|
|
|
|
2010-08-26 16:26:18 +02:00
|
|
|
EGDIR= ${PREFIX}/etc/glusterfs
|
2011-06-06 17:53:13 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/glusterd.vol.sample ${EGDIR}/glusterd.vol
|
2011-05-09 11:38:26 +02:00
|
|
|
OWN_DIRS+= ${VARBASE}/log/glusterfs
|
2010-08-26 16:26:18 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2014-08-14 00:37:37 +02:00
|
|
|
RCD_SCRIPTS= glusterfsd
|
2011-04-18 18:19:47 +02:00
|
|
|
|
2011-07-19 09:54:30 +02:00
|
|
|
PLIST_SRC= ${PLIST_SRC_DFLT}
|
2012-10-19 06:15:21 +02:00
|
|
|
PLIST_SUBST+= VARBASE=${VARBASE}
|
|
|
|
PLIST_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
2014-04-18 10:31:20 +02:00
|
|
|
PLIST_SUBST+= PYSITELIB=${PYSITELIB:Q}
|
2011-12-09 17:57:44 +01:00
|
|
|
MESSAGE_SRC= ${PKGDIR}/MESSAGE.${OPSYS}
|
|
|
|
|
2011-07-19 09:54:30 +02:00
|
|
|
|
2014-04-18 10:31:20 +02:00
|
|
|
pre-build:
|
|
|
|
cd ${WRKSRC} && ./gen-headers.py
|
|
|
|
|
2011-06-06 17:53:13 +02:00
|
|
|
post-build:
|
2014-04-18 10:31:20 +02:00
|
|
|
cp ${WRKSRC}/extras/glusterd.vol ${WRKSRC}/extras/glusterd.vol.sample
|
2011-06-06 17:53:13 +02:00
|
|
|
|
2010-08-26 16:26:18 +02:00
|
|
|
post-install:
|
2011-05-12 12:28:47 +02:00
|
|
|
${INSTALL_SCRIPT} ${DESTDIR}/sbin/mount.glusterfs \
|
2012-10-19 06:15:21 +02:00
|
|
|
${DESTDIR}/${PREFIX}/sbin/mount.glusterfs
|
2011-05-19 16:54:22 +02:00
|
|
|
|
|
|
|
# Debug
|
2014-04-18 10:31:20 +02:00
|
|
|
CFLAGS+= -g
|
2011-05-19 16:54:22 +02:00
|
|
|
INSTALL_UNSTRIPPED= yes
|
2014-04-18 10:31:20 +02:00
|
|
|
.include "../../devel/boehm-gc/buildlink3.mk"
|
|
|
|
CFLAGS+=-DGC_DEBUG
|
|
|
|
CFLAGS+=-include gc.h
|
|
|
|
LIBS+=-lgc
|
2010-08-26 16:26:18 +02:00
|
|
|
|
2011-07-19 09:54:30 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2010-08-26 16:26:18 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2014-08-14 00:37:37 +02:00
|
|
|
.include "../../devel/argp/buildlink3.mk"
|
2010-08-26 16:26:18 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
2014-04-18 10:31:20 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
2014-05-18 23:21:32 +02:00
|
|
|
|
|
|
|
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && exists(/usr/include/execinfo.h)
|
|
|
|
LIBS+= -lexecinfo
|
2010-08-26 16:26:18 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|