diff options
author | miwi <miwi@FreeBSD.org> | 2008-01-14 02:54:27 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-01-14 02:54:27 +0800 |
commit | 757c196fca1724400f27ca3c1d1a3c83c7ecbd23 (patch) | |
tree | 75916eb00a98c01c8147eb6e40d6fb87f5b18c9e /misc/e2fsprogs-libuuid | |
parent | aa5be1fab767abf12049069e358420e955be80ad (diff) | |
download | freebsd-ports-gnome-757c196fca1724400f27ca3c1d1a3c83c7ecbd23.tar.gz freebsd-ports-gnome-757c196fca1724400f27ca3c1d1a3c83c7ecbd23.tar.zst freebsd-ports-gnome-757c196fca1724400f27ca3c1d1a3c83c7ecbd23.zip |
- Add uuidd
- Fix pkg-plist
- Requires for sysutils/e2fsprogs update
PR: 119622
Submitted by: Matthias Andree <matthias.andree@gmx.de> (maintainer)
Diffstat (limited to 'misc/e2fsprogs-libuuid')
-rw-r--r-- | misc/e2fsprogs-libuuid/Makefile | 19 | ||||
-rw-r--r-- | misc/e2fsprogs-libuuid/files/uuidd.in | 20 | ||||
-rw-r--r-- | misc/e2fsprogs-libuuid/pkg-plist | 5 |
3 files changed, 44 insertions, 0 deletions
diff --git a/misc/e2fsprogs-libuuid/Makefile b/misc/e2fsprogs-libuuid/Makefile index 59f154d67013..f30c6ace903b 100644 --- a/misc/e2fsprogs-libuuid/Makefile +++ b/misc/e2fsprogs-libuuid/Makefile @@ -22,17 +22,36 @@ USE_LDCONFIG= yes ALL_TARGET= libs INSTALL_TARGET= install install-shlibs INSTALL_WRKSRC= ${WRKSRC}/lib/uuid +FILESDIR= ${.CURDIR}/files +USE_RC_SUBR= uuidd + +MAN1= uuidgen.1 MAN3= uuid.3 uuid_clear.3 uuid_compare.3 uuid_copy.3 uuid_generate.3 \ uuid_is_null.3 uuid_parse.3 uuid_time.3 uuid_unparse.3 \ uuid_generate_random.3 uuid_generate_time.3 +MAN8= uuidd.8 + 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/uuidd.h + pre-build: ${MKDIR} ${WRKSRC}/lib/uuid/elfshared post-build: + cd ${WRKSRC}/misc && ${MAKE} uuidgen uuidgen.1 uuidd uuidd.8 cd ${INSTALL_WRKSRC} && ${MAKE} check +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/misc/uuidgen ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/misc/uuidgen.1 ${MAN8PREFIX}/man/man1/ + ${INSTALL_PROGRAM} ${WRKSRC}/misc/uuidd ${PREFIX}/sbin/ + ${INSTALL_MAN} ${WRKSRC}/misc/uuidd.8 ${MAN8PREFIX}/man/man8/ + ${MKDIR} /var/run/libuuid + .include "${MASTERDIR}/Makefile" diff --git a/misc/e2fsprogs-libuuid/files/uuidd.in b/misc/e2fsprogs-libuuid/files/uuidd.in new file mode 100644 index 000000000000..029ebf94c2b1 --- /dev/null +++ b/misc/e2fsprogs-libuuid/files/uuidd.in @@ -0,0 +1,20 @@ +#!/bin/sh +# +# rcNG script to start uuidd at boot-time on rcNG-enabled systems, +# such as FreeBSD. +# +# (C) 2008 by Matthias Andree. +# Licensed under the modified (= 2-clause) BSD license. + +# PROVIDE: uuidd +# BEFORE: DAEMON + +. %%RC_SUBR%% + +name="uuidd" +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/uuidd" +procname="${command}" + +load_rc_config $name +run_rc_command "$1" diff --git a/misc/e2fsprogs-libuuid/pkg-plist b/misc/e2fsprogs-libuuid/pkg-plist index 8b1f4010bea3..4503c20e5beb 100644 --- a/misc/e2fsprogs-libuuid/pkg-plist +++ b/misc/e2fsprogs-libuuid/pkg-plist @@ -1,7 +1,12 @@ +@unexec %D/etc/rc.d/uuidd stop >/dev/null 2>&1 || true +@unexec rm -rf /var/run/libuuid >/dev/null 2>&1 || true +bin/uuidgen include/uuid/uuid.h lib/libuuid.so.1.2 lib/libuuid.so.1 lib/libuuid.so lib/libuuid.a libdata/pkgconfig/uuid.pc +sbin/uuidd @dirrm include/uuid +@exec mkdir -p /var/run/libuuid |