ports/119622: [MAINTAINER] misc/e2fsprogs-libuuid: add uuidd
Matthias Andree
matthias.andree at gmx.de
Sun Jan 13 11:40:01 UTC 2008
>Number: 119622
>Category: ports
>Synopsis: [MAINTAINER] misc/e2fsprogs-libuuid: add uuidd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 13 11:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Matthias Andree
>Release: FreeBSD 6.2-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD rho.emma.line.org 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #2: Sat Oct 20 10:40:35 CEST 2007
>Description:
Update, adding uuidd.
Requires sysutils/e2fsprogs update to be submitted in a few moments.
Added file(s):
- files/uuidd.in
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- e2fsprogs-libuuid-1.40.4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/misc/e2fsprogs-libuuid/Makefile /usr/home/emma/ports/misc/e2fsprogs-libuuid/Makefile
--- /usr/ports/misc/e2fsprogs-libuuid/Makefile Tue Oct 2 17:45:18 2007
+++ /usr/home/emma/ports/misc/e2fsprogs-libuuid/Makefile Sun Jan 13 12:19:46 2008
@@ -22,17 +22,36 @@
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 -ruN --exclude=CVS /usr/ports/misc/e2fsprogs-libuuid/files/uuidd.in /usr/home/emma/ports/misc/e2fsprogs-libuuid/files/uuidd.in
--- /usr/ports/misc/e2fsprogs-libuuid/files/uuidd.in Thu Jan 1 01:00:00 1970
+++ /usr/home/emma/ports/misc/e2fsprogs-libuuid/files/uuidd.in Sun Jan 13 12:15:06 2008
@@ -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 -ruN --exclude=CVS /usr/ports/misc/e2fsprogs-libuuid/pkg-plist /usr/home/emma/ports/misc/e2fsprogs-libuuid/pkg-plist
--- /usr/ports/misc/e2fsprogs-libuuid/pkg-plist Fri Jan 27 02:24:41 2006
+++ /usr/home/emma/ports/misc/e2fsprogs-libuuid/pkg-plist Sun Jan 13 12:33:51 2008
@@ -1,7 +1,12 @@
+ at unexec %D/etc/rc.d/uuidd stop >/dev/null 2>&1 || true
+ at 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
+ at exec mkdir -p /var/run/libuuid
--- e2fsprogs-libuuid-1.40.4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list