diff options
author | miwi <miwi@FreeBSD.org> | 2009-05-31 20:43:55 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-05-31 20:43:55 +0800 |
commit | 7bbd942e3b99e513080443322ed20beb416ec313 (patch) | |
tree | f20d7b2cf276add6c4afaa2fbe7c047937131c96 /sysutils | |
parent | 31e79fb48c09b8936cf3a3075962388ce8aa7384 (diff) | |
download | freebsd-ports-gnome-7bbd942e3b99e513080443322ed20beb416ec313.tar.gz freebsd-ports-gnome-7bbd942e3b99e513080443322ed20beb416ec313.tar.zst freebsd-ports-gnome-7bbd942e3b99e513080443322ed20beb416ec313.zip |
Actually, we're not trying to reinvent the wheel here,
rather adapt it to suit a slightly different purpose.
Below are a few main points and reasons as to why we've created filetype:
* file does not work so well for loosely defined filetypes ( ie, vCards )
* file uses a text-based type database which can impose unwanted delays
in frequently invoked processes
* file does not have a heirachial type tree (ie, executable->MSDOS->EXE )
* file is not designed to be incorporated at a source level into existing
projects
* Simpler and broader type detection engine ( 'file' is very good at
pulling out every detail about a file, ie, the resolution of an image,
however we do not wish to seek out such fine details )
WWW: http://www.pldaniels.com/filetype/
PR: ports/135087
Submitted by: ismail.yenigul at endersys.com.tr
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/filetype/Makefile | 31 | ||||
-rw-r--r-- | sysutils/filetype/distinfo | 3 | ||||
-rw-r--r-- | sysutils/filetype/files/patch-Makefile | 27 | ||||
-rw-r--r-- | sysutils/filetype/pkg-descr | 16 |
5 files changed, 78 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index dcc22dbc8ece..46866f13807a 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -211,6 +211,7 @@ SUBDIR += filelight SUBDIR += fileprune SUBDIR += fileschanged + SUBDIR += filetype SUBDIR += finfo SUBDIR += fio SUBDIR += flasher diff --git a/sysutils/filetype/Makefile b/sysutils/filetype/Makefile new file mode 100644 index 000000000000..60b9325a6571 --- /dev/null +++ b/sysutils/filetype/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: filetype +# Date created: May 31 2009 +# Whom: ismail.yenigul@endersys.com.tr +# +# $FreeBSD$ +# + +PORTNAME= filetype +PORTVERSION= 0.1.3 +CATEGORIES= sysutils +MASTER_SITES= http://www.pldaniels.com/filetype/ + +MAINTAINER= ismail.yenigul@endersys.com.tr +COMMENT= New file-type detection system + +MAN1= filetype.1 filetype-compile.1 +PORTDOCS= README CHANGELOG CONTRIBUTORS INSTALL LICENSE TODO + +PLIST_FILES= bin/filetype + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/filetype ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/filetype.1 ${MANPREFIX}/man/man1/ + ${INSTALL_DATA} ${WRKSRC}/filetype-compile.1 ${MANPREFIX}/man/man1/ + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> diff --git a/sysutils/filetype/distinfo b/sysutils/filetype/distinfo new file mode 100644 index 000000000000..1a61633722e5 --- /dev/null +++ b/sysutils/filetype/distinfo @@ -0,0 +1,3 @@ +MD5 (filetype-0.1.3.tar.gz) = acbb48a5dfd6d46e5a80d326b70b692d +SHA256 (filetype-0.1.3.tar.gz) = bed5fa94bd5ec5a19f237396041397340418b361df1e5c958bdbfa9be6ae36a6 +SIZE (filetype-0.1.3.tar.gz) = 35378 diff --git a/sysutils/filetype/files/patch-Makefile b/sysutils/filetype/files/patch-Makefile new file mode 100644 index 000000000000..ec722fbce07e --- /dev/null +++ b/sysutils/filetype/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile.orig 2004-04-06 14:56:41.000000000 +0300 ++++ Makefile 2009-05-31 13:52:14.000000000 +0300 +@@ -4,7 +4,7 @@ + #CC=ccmalloc gcc + #CFLAGS=-Wall -g + #CFLAGS=-Wall -ggdb +-CFLAGS=-Wall -Werror -g ++CFLAGS=-Wall -g + DEFINES= + OBJS=pldstr.o logger.o libfiletype.o + +@@ -29,15 +29,6 @@ + clean: + rm *.o filetype-compile filetype + +-install: filetype-compile filetype +- strip filetype-compile +- strip filetype +- ./filetype-compile filetype.list filetype.spec +- cp -v filetype filetype-compile /usr/local/bin +- cp -v filetype.spec /etc +- cp -v filetype.1 /usr/local/man/man1 +- cp -v filetype-compile.1 /usr/local/man/man1 +- + validate: filetype filetype-compile + ./filetype-compile filetype.list filetype.spec + cp -v filetype.spec validate diff --git a/sysutils/filetype/pkg-descr b/sysutils/filetype/pkg-descr new file mode 100644 index 000000000000..727dc1c5c343 --- /dev/null +++ b/sysutils/filetype/pkg-descr @@ -0,0 +1,16 @@ +Actually, we're not trying to reinvent the wheel here, +rather adapt it to suit a slightly different purpose. + +Below are a few main points and reasons as to why we've created filetype: + + * file does not work so well for loosely defined filetypes ( ie, vCards ) + * file uses a text-based type database which can impose unwanted delays + in frequently invoked processes + * file does not have a heirachial type tree (ie, executable->MSDOS->EXE ) + * file is not designed to be incorporated at a source level into existing + projects + * Simpler and broader type detection engine ( 'file' is very good at + pulling out every detail about a file, ie, the resolution of an image, + however we do not wish to seek out such fine details ) + +WWW: http://www.pldaniels.com/filetype/ |