5b63de467e
Currently when requiring both ossp-uuid and e2fspogs-libuuid is an impossibility without the use of a jail. This patch was created to fix this conflict. The patch includes updating revisions for removal of CONFLICTS, and change LIBDEPEND change for all affected ports. The changes on ossp-uuid port includes renaming of the shared/static libs created, C/C++ manpage, and rename of pkgconfig file. PR: 207004 Submitted by: Ultima1252@gmail.com Approved by: vd
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# Created by: Matthias Andree <matthias.andree@gmx.de>
|
|
# $FreeBSD$
|
|
|
|
PORTREVISION= 1
|
|
CATEGORIES= misc devel
|
|
PKGNAMESUFFIX= -libuuid
|
|
|
|
COMMENT= UUID library from e2fsprogs package
|
|
|
|
CONFIGURE_ARGS= --enable-elf-shlibs
|
|
|
|
OPTIONS_EXCLUDE= NLS
|
|
MASTERDIR= ${.CURDIR}/../../sysutils/e2fsprogs
|
|
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}${MAN8PREFIX}/man/man1/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/misc/uuidd ${STAGEDIR}${PREFIX}/sbin/
|
|
${INSTALL_MAN} ${WRKSRC}/misc/uuidd.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
|
|
${MKDIR} ${STAGEDIR}/var/run/libuuid
|
|
|
|
.include "${MASTERDIR}/Makefile"
|