mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
PORTREVISION= 0
|
|
CATEGORIES= misc devel
|
|
PKGNAMESUFFIX= -libuuid
|
|
|
|
COMMENT= UUID library from e2fsprogs package
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${INSTALL_WRKSRC}/COPYING
|
|
|
|
CONFIGURE_ARGS= --enable-elf-shlibs --enable-libuuid
|
|
|
|
OPTIONS_EXCLUDE= NLS
|
|
MASTERDIR= ${.CURDIR}/../../filesystems/e2fsprogs-core
|
|
MAKE_ARGS= LIB_SUBDIRS=lib/uuid
|
|
USE_LDCONFIG= yes
|
|
ALL_TARGET= libs
|
|
INSTALL_TARGET= install install-shlibs
|
|
INSTALL_WRKSRC= ${WRKSRC}/lib/uuid
|
|
FILESDIR= ${.CURDIR}/files
|
|
USE_RC_SUBR= uuidd
|
|
|
|
PKGDIR= ${.CURDIR}
|
|
|
|
post-patch::
|
|
${REINPLACE_CMD} -e 's,/var/lib/libuuid,/var/run/libuuid,g' \
|
|
-e 's,/usr/sbin/uuidd,${PREFIX}/sbin/uuidd,' \
|
|
${WRKSRC}/lib/uuid/*.[ch]
|
|
|
|
pre-build:
|
|
${MKDIR} ${WRKSRC}/lib/uuid/elfshared
|
|
cd ${WRKSRC}/util && ${MAKE_CMD} subst
|
|
|
|
# ulimit guards against runaway tests
|
|
# failure to launch uuidd is fine (one might be running, or we may lack
|
|
# privileges); if it works, it'll quit after 50 seconds
|
|
post-build:
|
|
cd ${WRKSRC}/misc && ${MAKE_CMD} uuidgen uuidgen.1 uuidd uuidd.8
|
|
cd ${INSTALL_WRKSRC} && ( ulimit -t 5 && ${MAKE_CMD} check )
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/misc/uuidgen ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_MAN} ${WRKSRC}/misc/uuidgen.1 ${STAGEDIR}${PREFIX}/share/man/man1/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/misc/uuidd ${STAGEDIR}${PREFIX}/sbin/
|
|
${INSTALL_MAN} ${WRKSRC}/misc/uuidd.8 ${STAGEDIR}${PREFIX}/share/man/man8/
|
|
${MKDIR} ${STAGEDIR}/var/run/libuuid
|
|
|
|
.include "${MASTERDIR}/Makefile"
|