diff --git a/sys-apps/file/file-5.11.bep b/sys-apps/file/file-5.11.bep new file mode 100644 index 000000000..d2af82c38 --- /dev/null +++ b/sys-apps/file/file-5.11.bep @@ -0,0 +1,22 @@ +DESCRIPTION="Identify a file's format by scanning binary data for patterns" +HOMEPAGE="ftp://ftp.astron.com/pub/file/" +SRC_URI="ftp://ftp.astron.com/pub/file/file-5.11.tar.gz" +CHECKSUM_MD5="16a407bd66d6c7a832f3a5c0d609c27b" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd file-5.11 + autoreconf -fvi + ./configure --prefix="$(finddir B_COMMON_DIRECTORY)" \ + --mandir="$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man" \ + --datadir="$(finddir B_COMMON_DATA_DIRECTORY)" + make +} + +INSTALL { + cd file-5.11 + make install +} +LICENSE="BSD (2-clause)" +COPYRIGHT="1986-1999 Ian F. Darwin" diff --git a/sys-apps/file/patches/file-5.11.patch b/sys-apps/file/patches/file-5.11.patch new file mode 100644 index 000000000..99a60b72f --- /dev/null +++ b/sys-apps/file/patches/file-5.11.patch @@ -0,0 +1,20 @@ +diff -up file-5.11/configure.ac.orig file-5.11/configure.ac +--- file-5.11/configure.ac.orig 2012-02-21 12:16:29.015728640 -0700 ++++ file-5.11/configure.ac 2012-05-02 22:53:14.077594624 -0600 +@@ -142,14 +142,14 @@ else + WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ + -Wmissing-declarations -Wredundant-decls -Wnested-externs \ + -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ +- -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" ++ -Wcast-qual -Wwrite-strings" + fi], [ + if test "$GCC" = yes; then + AC_MSG_RESULT(yes) + WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ + -Wmissing-declarations -Wredundant-decls -Wnested-externs \ + -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ +- -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" ++ -Wcast-qual -Wwrite-strings" + else + WARNINGS= + AC_MSG_RESULT(no)