5393242c73
Performing substitutions during post-patch breaks tools such as mkpatches, making it very difficult to regenerate correct patches after making changes, and often leading to substituted string replacements being committed.
58 lines
1.9 KiB
Makefile
58 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2018/07/04 13:40:37 jperkin Exp $
|
|
|
|
DISTNAME= e2fsprogs-1.43.7
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v${PKGVERSION_NOREV}/
|
|
#MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://e2fsprogs.sourceforge.net/
|
|
COMMENT= Second extended file system (ext2fs) management programs
|
|
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2 AND modified-bsd AND mit
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake makeinfo pkg-config
|
|
GNU_CONFIGURE= yes
|
|
# Use external libraries
|
|
CONFIGURE_ARGS+= --disable-libblkid
|
|
CONFIGURE_ARGS+= --disable-libuuid
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
INFO_FILES= yes
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == "Darwin"
|
|
BUILDLINK_TRANSFORM+= rm:-luuid
|
|
.endif
|
|
|
|
# Only build fsck(8) on platforms that need it.
|
|
PLIST_VARS+= fsck
|
|
.if ${OPSYS} == "Linux"
|
|
PLIST.fsck= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-fsck
|
|
.endif
|
|
|
|
EGDIR= ${PREFIX}/share/examples/ext2fs
|
|
CONF_FILES+= ${EGDIR}/mke2fs.conf ${PKG_SYSCONFDIR}/mke2fs.conf
|
|
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} root_sysconfdir=${EGDIR}
|
|
|
|
SUBST_CLASSES+= man
|
|
SUBST_MESSAGE.man= Give correct path for man page
|
|
SUBST_STAGE.man= pre-configure
|
|
SUBST_FILES.man+= misc/mke2fs.8.in
|
|
SUBST_FILES.man+= misc/mke2fs.conf.5.in
|
|
SUBST_FILES.man+= e2fsck/e2fsck.conf.5.in
|
|
SUBST_FILES.man+= lib/blkid/libblkid.3.in
|
|
SUBST_FILES.man+= misc/blkid.8.in
|
|
SUBST_SED.man+= -e '/mke2fs.conf/s,/etc,@root_sysconfdir@,'
|
|
SUBST_SED.man+= -e '/mke2fs.conf/s,/etc,@root_sysconfdir@,'
|
|
# next (two) path's in the man page do not exist
|
|
SUBST_SED.man+= -e '/e2fsck.conf/s,/etc,@root_sysconfdir@,'
|
|
SUBST_SED.man+= -e '/blkid.tab/s,/etc,@root_sysconfdir@,'
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/libblkid/buildlink3.mk"
|
|
.include "../../devel/libuuid/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|