diff --git a/misc/Makefile b/misc/Makefile index da33e0843017..c01fa921bbb2 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -103,6 +103,7 @@ SUBDIR += gretl SUBDIR += grun SUBDIR += gtkfind + SUBDIR += gtktalog SUBDIR += gtl SUBDIR += gwhich SUBDIR += hb diff --git a/misc/gtktalog/Makefile b/misc/gtktalog/Makefile new file mode 100644 index 000000000000..9b7071939bdb --- /dev/null +++ b/misc/gtktalog/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: gtktalog +# Date created: 20 Mar 2002 +# Whom: Juan Salaverria +# +# $FreeBSD$ +# + +PORTNAME= gtktalog +PORTVERSION= 0.99.19 +CATEGORIES= misc +MASTER_SITES= http://freesoftware.fsf.org/download/gtktalog/gtktalog/sources/ + +MAINTAINER= rael@vectorstar.net + +USE_GNOMELIBS= yes +GNU_CONFIGURE= yes + +MAN1= gtktalog.1 + +DOCS= AUTHORS BUGS COPYING ChangeLog NEWS README TODO + +post-patch: + ${PERL} -pi -e "s@^(Applicationsdir = ).*@\1${PREFIX}/share/gnome/apps/Applications@" ${WRKSRC}/Makefile.in + ${PERL} -pi -e "s@^(localedir = ).*@\1${PREFIX}/share/locale@" \ + ${WRKSRC}/po/Makefile.in.in + ${PERL} -pi -e "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/C@" ${WRKSRC}/Docs/C/Makefile.in + ${PERL} -pi -e "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/fr@" ${WRKSRC}/Docs/fr/Makefile.in + ${PERL} -pi -e "s@^(MountPoint ).*@\1/cdrom@" \ + ${WRKSRC}/src/gtktalog/gtktalog.cf.in.in + +post-install: + ${RMDIR} ${PREFIX}/share/gnome/help/gtktalog/*/images 2>/dev/null || ${TRUE} +.if !defined(NOPORTDOCS) + ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/misc/gtktalog/distinfo b/misc/gtktalog/distinfo new file mode 100644 index 000000000000..be0593e03281 --- /dev/null +++ b/misc/gtktalog/distinfo @@ -0,0 +1 @@ +MD5 (gtktalog-0.99.19.tar.gz) = a5b15bef5fcf4ce466fd7211a269a3cf diff --git a/misc/gtktalog/files/patch-addisk.c b/misc/gtktalog/files/patch-addisk.c new file mode 100644 index 000000000000..f6030e0f7073 --- /dev/null +++ b/misc/gtktalog/files/patch-addisk.c @@ -0,0 +1,56 @@ +--- src/gtktalog/addisk.c.ori Tue Apr 9 00:12:25 2002 ++++ src/gtktalog/addisk.c Tue Apr 9 00:15:54 2002 +@@ -240,7 +240,7 @@ + gboolean + mount_disk (CONFIG * my_config) + { +-#if defined(OS_LINUX) || defined(OS_NETBSD) || defined(OS_OPENBSD) ++#if defined(OS_LINUX) || defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_FREEBSD) + int pid, status; + char *args[3]; + int nargs; +@@ -290,20 +290,6 @@ + + set_message_to_display (g_string_new (_("Mount failed! Disk in use?"))); + return (FALSE); +-#elif defined(OS_FREEBSD) +- int status; +- struct iso_args args; +- +- args.export.ex_flags = MNT_EXRDONLY; +- args.fspec = "/dev/cd0a"; // Will be changed +- args.export.ex_root = -2; +- status = +- mount (MOUNT_CD9660, my_config->mount_point->str, MNT_RDONLY, &args); +- /* error saved in errno variable, do something with it */ +- if (status == 0) +- return (TRUE); +- else +- return (FALSE); + #elif defined(OS_PPC_DARWIN) + /* + * with MacOS X, CD are mounted automatically so, +@@ -319,7 +305,7 @@ + gboolean + umount_disk (CONFIG * my_config) + { +-#if defined(OS_LINUX) || defined(OS_NETBSD) || defined(OS_OPENBSD) ++#if defined(OS_LINUX) || defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_FREEBSD) + int pid, status; + int nargs; + char *args[3]; +@@ -361,14 +347,6 @@ + return (FALSE); + } + return (TRUE); +-#elif defined(OS_FREEBSD) +- int status; +- +- status = unmount (my_config->mount_point->str, NULL); +- if (status == 0) +- return (TRUE); +- else +- return (FALSE); + #elif defined(OS_PPC_DARWIN) + set_message_to_display (g_string_new (_("Umount failed! Disk in use?"))); + return (FALSE); diff --git a/misc/gtktalog/pkg-comment b/misc/gtktalog/pkg-comment new file mode 100644 index 000000000000..38e43656d5ea --- /dev/null +++ b/misc/gtktalog/pkg-comment @@ -0,0 +1 @@ +GTKtalog is a tool to make disk catalogs diff --git a/misc/gtktalog/pkg-descr b/misc/gtktalog/pkg-descr new file mode 100644 index 000000000000..d1ce33b92a39 --- /dev/null +++ b/misc/gtktalog/pkg-descr @@ -0,0 +1,6 @@ +GTKtalog is a tool to make disk catalogs: you can use it to create +a really small database with images of files and directories of your CDs. + +WWW: http://www.freesoftware.fsf.org/gtktalog/ + +ymettier@libertysurf.fr diff --git a/misc/gtktalog/pkg-plist b/misc/gtktalog/pkg-plist new file mode 100644 index 000000000000..a6dad6fbd3b5 --- /dev/null +++ b/misc/gtktalog/pkg-plist @@ -0,0 +1,181 @@ +bin/gtktalog +lib/gtktalog/aviinfo +lib/gtktalog/htmltitle +lib/gtktalog/modinfo +lib/gtktalog/mp3info +share/gnome/apps/Applications/gtktalog.desktop +share/gnome/gtktalog/gtktalog.cf +share/gnome/gtktalog/icons/c.xpm +share/gnome/gtktalog/icons/cat.xpm +share/gnome/gtktalog/icons/cpp.xpm +share/gnome/gtktalog/icons/deb.xpm +share/gnome/gtktalog/icons/default_dir.xpm +share/gnome/gtktalog/icons/default_disk.xpm +share/gnome/gtktalog/icons/default_file.xpm +share/gnome/gtktalog/icons/default_opened_dir.xpm +share/gnome/gtktalog/icons/default_opened_disk.xpm +share/gnome/gtktalog/icons/default_opened_vfs.xpm +share/gnome/gtktalog/icons/default_unreadable.xpm +share/gnome/gtktalog/icons/default_vfs.xpm +share/gnome/gtktalog/icons/doc.xpm +share/gnome/gtktalog/icons/file.xpm +share/gnome/gtktalog/icons/gz.xpm +share/gnome/gtktalog/icons/h.xpm +share/gnome/gtktalog/icons/html.xpm +share/gnome/gtktalog/icons/image.xpm +share/gnome/gtktalog/icons/java.xpm +share/gnome/gtktalog/icons/logo.xpm +share/gnome/gtktalog/icons/movie.xpm +share/gnome/gtktalog/icons/mp3.xpm +share/gnome/gtktalog/icons/pdf.xpm +share/gnome/gtktalog/icons/rpm.xpm +share/gnome/gtktalog/icons/so.xpm +share/gnome/gtktalog/icons/son.xpm +share/gnome/gtktalog/icons/txt.xpm +share/gnome/gtktalog/xpm/add.xpm +share/gnome/gtktalog/xpm/exit.xpm +share/gnome/gtktalog/xpm/find.xpm +share/gnome/gtktalog/xpm/help.xpm +share/gnome/gtktalog/xpm/new.xpm +share/gnome/gtktalog/xpm/off.xpm +share/gnome/gtktalog/xpm/on.xpm +share/gnome/gtktalog/xpm/open.xpm +share/gnome/gtktalog/xpm/report.xpm +share/gnome/gtktalog/xpm/save.xpm +share/gnome/gtktalog/xpm/setup__Disk_setup.xpm +share/gnome/gtktalog/xpm/setup__General_options.xpm +share/gnome/gtktalog/xpm/setup__Information_plugins.xpm +share/gnome/gtktalog/xpm/setup__LoadSave_options.xpm +share/gnome/gtktalog/xpm/setup__MIME_type_icons.xpm +share/gnome/gtktalog/xpm/setup__MIME_types_to_skip_during_a_scan.xpm +share/gnome/gtktalog/xpm/setup__Scan_mime_types.xpm +share/gnome/gtktalog/xpm/setup__Scan_options.xpm +share/gnome/gtktalog/xpm/setup__Virtual_File_Systems.xpm +share/gnome/help/gtktalog/C/caution.gif +share/gnome/help/gtktalog/C/ch-catdesc.html +share/gnome/help/gtktalog/C/ch-err.html +share/gnome/help/gtktalog/C/ch-find.html +share/gnome/help/gtktalog/C/ch-intro.html +share/gnome/help/gtktalog/C/ch-manage.html +share/gnome/help/gtktalog/C/ch-merge.html +share/gnome/help/gtktalog/C/ch-mime.html +share/gnome/help/gtktalog/C/ch-prefs.html +share/gnome/help/gtktalog/C/ch-quick.html +share/gnome/help/gtktalog/C/ch-reports.html +share/gnome/help/gtktalog/C/ch-scanning.html +share/gnome/help/gtktalog/C/ch-smartconf.html +share/gnome/help/gtktalog/C/ch-stats.html +share/gnome/help/gtktalog/C/ch-ui.html +share/gnome/help/gtktalog/C/ch-vfs.html +share/gnome/help/gtktalog/C/gtktalog.html +share/gnome/help/gtktalog/C/home.gif +share/gnome/help/gtktalog/C/important.gif +share/gnome/help/gtktalog/C/index.html +share/gnome/help/gtktalog/C/ln23.html +share/gnome/help/gtktalog/C/man.html +share/gnome/help/gtktalog/C/mimeicons.html +share/gnome/help/gtktalog/C/next.gif +share/gnome/help/gtktalog/C/note.gif +share/gnome/help/gtktalog/C/prev.gif +share/gnome/help/gtktalog/C/se-catdesc-assign.html +share/gnome/help/gtktalog/C/se-find-adv.html +share/gnome/help/gtktalog/C/se-manage-copy.html +share/gnome/help/gtktalog/C/se-manage-restore.html +share/gnome/help/gtktalog/C/se-manage-where.html +share/gnome/help/gtktalog/C/se-prefs-gen.html +share/gnome/help/gtktalog/C/se-prefs-infplugin.html +share/gnome/help/gtktalog/C/se-prefs-mimetypes.html +share/gnome/help/gtktalog/C/se-prefs-vfs.html +share/gnome/help/gtktalog/C/se-quick-find.html +share/gnome/help/gtktalog/C/se-ui-cmd.html +share/gnome/help/gtktalog/C/se-ui-menus.html +share/gnome/help/gtktalog/C/se-ui-popup.html +share/gnome/help/gtktalog/C/tip.gif +share/gnome/help/gtktalog/C/toc-blank.gif +share/gnome/help/gtktalog/C/toc-minus.gif +share/gnome/help/gtktalog/C/toc-plus.gif +share/gnome/help/gtktalog/C/topic.dat +share/gnome/help/gtktalog/C/up.gif +share/gnome/help/gtktalog/C/warning.gif +share/gnome/help/gtktalog/C/x228.html +share/gnome/help/gtktalog/C/x612.html +share/gnome/help/gtktalog/fr/caution.gif +share/gnome/help/gtktalog/fr/ch-catdesc.html +share/gnome/help/gtktalog/fr/ch-err.html +share/gnome/help/gtktalog/fr/ch-find.html +share/gnome/help/gtktalog/fr/ch-intro.html +share/gnome/help/gtktalog/fr/ch-manage.html +share/gnome/help/gtktalog/fr/ch-merge.html +share/gnome/help/gtktalog/fr/ch-mime.html +share/gnome/help/gtktalog/fr/ch-prefs.html +share/gnome/help/gtktalog/fr/ch-quick.html +share/gnome/help/gtktalog/fr/ch-reports.html +share/gnome/help/gtktalog/fr/ch-scanning.html +share/gnome/help/gtktalog/fr/ch-smartconf.html +share/gnome/help/gtktalog/fr/ch-stats.html +share/gnome/help/gtktalog/fr/ch-ui.html +share/gnome/help/gtktalog/fr/ch-vfs.html +share/gnome/help/gtktalog/fr/gtktalog.html +share/gnome/help/gtktalog/fr/home.gif +share/gnome/help/gtktalog/fr/important.gif +share/gnome/help/gtktalog/fr/index.html +share/gnome/help/gtktalog/fr/ln28.html +share/gnome/help/gtktalog/fr/man.html +share/gnome/help/gtktalog/fr/mimeicons.html +share/gnome/help/gtktalog/fr/next.gif +share/gnome/help/gtktalog/fr/note.gif +share/gnome/help/gtktalog/fr/prev.gif +share/gnome/help/gtktalog/fr/se-catdesc-assign.html +share/gnome/help/gtktalog/fr/se-find-adv.html +share/gnome/help/gtktalog/fr/se-manage-copy.html +share/gnome/help/gtktalog/fr/se-manage-restore.html +share/gnome/help/gtktalog/fr/se-manage-where.html +share/gnome/help/gtktalog/fr/se-prefs-gen.html +share/gnome/help/gtktalog/fr/se-prefs-infplugin.html +share/gnome/help/gtktalog/fr/se-prefs-mimetypes.html +share/gnome/help/gtktalog/fr/se-prefs-vfs.html +share/gnome/help/gtktalog/fr/se-quick-find.html +share/gnome/help/gtktalog/fr/se-ui-cmd.html +share/gnome/help/gtktalog/fr/se-ui-menus.html +share/gnome/help/gtktalog/fr/se-ui-popup.html +share/gnome/help/gtktalog/fr/tip.gif +share/gnome/help/gtktalog/fr/toc-blank.gif +share/gnome/help/gtktalog/fr/toc-minus.gif +share/gnome/help/gtktalog/fr/toc-plus.gif +share/gnome/help/gtktalog/fr/topic.dat +share/gnome/help/gtktalog/fr/up.gif +share/gnome/help/gtktalog/fr/warning.gif +share/gnome/help/gtktalog/fr/x223.html +share/gnome/help/gtktalog/fr/x607.html +share/gnome/pixmaps/gtktalog.png +share/locale/ca/LC_MESSAGES/gtktalog.mo +share/locale/cs/LC_MESSAGES/gtktalog.mo +share/locale/de/LC_MESSAGES/gtktalog.mo +share/locale/es/LC_MESSAGES/gtktalog.mo +share/locale/fr/LC_MESSAGES/gtktalog.mo +share/locale/hu/LC_MESSAGES/gtktalog.mo +share/locale/it/LC_MESSAGES/gtktalog.mo +share/locale/ja/LC_MESSAGES/gtktalog.mo +share/locale/nl/LC_MESSAGES/gtktalog.mo +share/locale/pl/LC_MESSAGES/gtktalog.mo +share/locale/ru/LC_MESSAGES/gtktalog.mo +share/locale/sk/LC_MESSAGES/gtktalog.mo +share/locale/sv/LC_MESSAGES/gtktalog.mo +%%PORTDOCS%%share/doc/gtktalog/AUTHORS +%%PORTDOCS%%share/doc/gtktalog/BUGS +%%PORTDOCS%%share/doc/gtktalog/COPYING +%%PORTDOCS%%share/doc/gtktalog/ChangeLog +%%PORTDOCS%%share/doc/gtktalog/NEWS +%%PORTDOCS%%share/doc/gtktalog/README +%%PORTDOCS%%share/doc/gtktalog/TODO +%%PORTDOCS%%@dirrm share/doc/gtktalog +@dirrm lib/gtktalog +@dirrm share/gnome/gtktalog/icons +@dirrm share/gnome/gtktalog/xpm +@dirrm share/gnome/gtktalog +@dirrm share/gnome/help/gtktalog/C +@dirrm share/gnome/help/gtktalog/fr +@dirrm share/gnome/help/gtktalog +@unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true +@unexec rmdir %D/share/locale/* 2>/dev/null || true +@unexec rmdir share/locale 2>/dev/null || true