Skip to content

Commit

Permalink
sysutils/e2fsprogs: 2/2 add a port for /sbin fsck'ing ext2/ext3/ext4
Browse files Browse the repository at this point in the history
This is the second half of the e2fsprogs commit to permit having
a big hier(7)-clean e2fsprogs port that does not ever reach into /sbin,
now called e2fsprogs-core, and this new port that will copy from
${LOCALBASE} to /sbin so that /usr can reside on an ext2/ext3/ext4
file system and still be fsck'd at boot time.
  • Loading branch information
mandree committed Oct 1, 2022
1 parent 14e733a commit 7545575
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/Makefile
Expand Up @@ -325,6 +325,7 @@
SUBDIR += dwatch-gource
SUBDIR += dwatch-json
SUBDIR += dwatch-pwsnoop
SUBDIR += e2fsprogs
SUBDIR += e2fsprogs-core
SUBDIR += e2tools
SUBDIR += ebsnvme-id
Expand Down
21 changes: 21 additions & 0 deletions sysutils/e2fsprogs/Makefile
@@ -0,0 +1,21 @@
PORTNAME= e2fsprogs
CATEGORIES= sysutils
PORTVERSION= 1.46.5
PORTREVISION= 5
BUILD_DEPENDS= e2fsprogs-core>=${PORTVERSION}:sysutils/e2fsprogs-core
RUN_DEPENDS= ${BUILD_DEPENDS}
DISTFILES= # empty
NO_BUILD= yes
LICENSE= GPLv2+
USES= cpe
CPE_VENDOR= e2fsprogs_project

MAINTAINER= mandree@FreeBSD.org
COMMENT= Wrapper to install e2fsprogs into /sbin

do-install:
${MKDIR} ${STAGEDIR}/sbin
${CP} -p ${LOCALBASE}/sbin/fsck_ext2fs ${STAGEDIR}/sbin
${CP} -p ${LOCALBASE}/sbin/e2fsck ${STAGEDIR}/sbin

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions sysutils/e2fsprogs/pkg-descr
@@ -0,0 +1,3 @@
This is a helper package that will copy and register the essential binaries
from e2fsprogs-core to /sbin, so that it is possible to have /usr in an ext2,
ext3, or ext4 file system, and still have a proper fsck in /sbin.
2 changes: 2 additions & 0 deletions sysutils/e2fsprogs/pkg-plist
@@ -0,0 +1,2 @@
/sbin/e2fsck
/sbin/fsck_ext2fs

0 comments on commit 7545575

Please sign in to comment.