Subject: pkg/19477: e2fsprogs under Linux should include fsck
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 12/20/2002 13:39:47
>Number: 19477
>Category: pkg
>Synopsis: sysutils/e2fsprogs should include fsck under Linux
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Dec 20 13:40:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
sysutils/e2fsprogs excludes fsck and fsck.8.
This should only be excluded on some platforms.
>How-To-Repeat:
build package under Linux
>Fix:
Please consider something like the following:
--- Makefile.orig 2002-12-20 13:21:05.000000000 -0800
+++ Makefile 2002-12-20 13:29:39.000000000 -0800
@@ -13,6 +13,19 @@
COMMENT= Second extended file system (ext2fs) management programs
GNU_CONFIGURE= yes
+
+PLIST_SRC= ${WRKDIR}/PLIST
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} != "Linux"
CONFIGURE_ARGS+=--disable-fsck
+.endif
+
+post-install:
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+.if ${OPSYS} == "Linux"
+ ${ECHO} 'sbin/fsck' >> ${PLIST_SRC}
+ ${ECHO} 'man/man8/fsck.8' >> ${PLIST_SRC}
+.endif
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: