Skip to content

Commit

Permalink
Merge pull request #1468 from mariux64/fix-e2fsprogs-14511
Browse files Browse the repository at this point in the history
e2fsprogs: going static
  • Loading branch information
wwwutz authored Nov 21, 2019
2 parents 46c2fd6 + fc65f4a commit d391a55
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 10 deletions.
31 changes: 21 additions & 10 deletions e2fsprogs.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION e2fsprogs-1.45.4-1
# BEE_VERSION e2fsprogs-1.45.4-2

## The source URL(s) array
SRCURL[0]="https://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-${PKGVERSION}.tar.gz"
Expand Down Expand Up @@ -37,21 +37,32 @@ mee_configure() {
--disable-nls
}

mee_build() {
bee_build
# start_cmd make check
}
#mee_build() {
# bee_build
#}

#mee_install() {
# bee_install
#}

mee_install_post() {
make install-libs DESTDIR=${D}
chmod -v u+w ${D}${LIBDIR}/{libcom_err,libe2p,libext2fs,libss}.a
gunzip -v ${D}${DATADIR}/info/libext2fs.info.gz
mv ${D}${SYSCONFDIR}/mke2fs.conf ${D}${SYSCONFDIR}/mke2fs.conf.sample

# we dont volume manage so we dont scrub
rm -f ${D}/usr/sbin/e2scrub*
rm -f ${D}/usr/share/man/man8/e2scrub*
rm -rf ${D}/lib
rm -rf ${D}/usr/lib/e2fsprogs
rm -f ${D}${SYSCONFDIR}/e2scrub.conf
# we dont cron
rm -rv ${D}/etc/cron.d
rm -rv ${D}/lib/systemd
# we dont dev
rm -v ${D}${DATADIR}/info/libext2fs.info.gz
rm -rv ${D}/usr/lib/*.a
rm -rf ${D}/usr/lib/pkgconfig
# this is in libcom-err2
rm -f ${D}/usr/bin/compile_et
rm -rf ${D}/usr/share/et
rm -f ${D}/usr/share/man/man1/compile_et.1
rm -rf ${D}/usr/share/man/man3
rm -rf ${D}/usr/include
}
42 changes: 42 additions & 0 deletions libcom-err2.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env beesh

# BEE_VERSION libcom-err2-1.45.4-0

## The source URL(s) array
SRCURL[0]="https://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-${PKGVERSION}.tar.gz"

# PATCHURL+=()

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

#mee_patch() {
# bee_patch "${@}"
#}

mee_configure() {
# blkid, uuid, fsck are used from util-linux.
bee_configure \
--enable-verbose-makecmds \
--with-root-prefix= \
--enable-elf-shlibs
}

mee_build() {
cd ${B}/lib/et
make ${BEE_MAKEFLAGS} "$@"
}

mee_install() {
cd ${B}/lib/et
make ${BEE_MAKEFLAGS} install DESTDIR=${D} "$@"
}

#mee_install_post() {
# exit
#}

0 comments on commit d391a55

Please sign in to comment.