Skip to content

Commit

Permalink
Initial bep and patch for e2fsprogs. Note that it's not yet building,…
Browse files Browse the repository at this point in the history
… needs further patching.
  • Loading branch information
scottmc committed Mar 18, 2013
1 parent 1ceedf3 commit 9b6860b
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
28 changes: 28 additions & 0 deletions sys-fs/e2fsprogs/e2fsprogs-1.43.bep
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
DESCRIPTION="Standard EXT2/EXT3/EXT4 filesystem utilities"
HOMEPAGE="http://e2fsprogs.sourceforge.net/"
SRC_URI="http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs-TEST/1.43-WIP-0922/e2fsprogs-1.43-WIP-2012-09-22.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fe2fsprogs%2Ffiles%2Fe2fsprogs-TEST%2F1.43-WIP-0922%2F&ts=1356043363&use_mirror=switch"
CHECKSUM_MD5="653625e10de6ee038e1ee40480de9787"
REVISION="1"
STATUS_HAIKU="broken"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
DEPEND=""

BUILD {
cd e2fsprogs-1.43
autoconf
libdir=`finddir B_COMMON_LIB_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
USE=-loop-aes --enable-symlink-build \
--enable-symlink-install --disable-tls \
--enable-quota=no --disable-fsck \
--enable-elf-shlibs
make
}

INSTALL {
cd e2fsprogs-1.43
make install-libs
}

LICENSE="GNU GPL v2"
COPYRIGHT="2004-2012 Free Software Foundation, Inc."
25 changes: 25 additions & 0 deletions sys-fs/e2fsprogs/patches/e2fsprogs-1.43.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff -urN e2fsprogs-1.43/configure.in e2fsprogs-1.43-haiku/configure.in
--- e2fsprogs-1.43/configure.in 2013-03-18 01:46:29.019922944 -0700
+++ e2fsprogs-1.43-haiku/configure.in 2013-03-18 02:02:17.526123008 -0700
@@ -96,8 +96,11 @@
dnl
AC_PROG_CC
if test "$GCC" = yes; then
- RDYNAMIC="-rdynamic"
- AC_SUBST(RDYNAMIC)
+ case "$host_os" in
+ haiku*) RDYNAMIC="-Wl,-export-dynamic" ;;
+ *) RDYNAMIC="-rdynamic" ;;
+ esac
+ AC_SUBST(RDYNAMIC)
fi
AC_PROG_CPP
dnl
@@ -1097,6 +1100,7 @@
dnl
SOCKET_LIB=''
AC_CHECK_LIB(socket, socket, [SOCKET_LIB=-lsocket])
+AC_CHECK_LIB(network, socket, [SOCKET_LIB=-lnetwork])
AC_SUBST(SOCKET_LIB)
dnl
dnl See if optreset exists

0 comments on commit 9b6860b

Please sign in to comment.