pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/xfile



Module Name:    pkgsrc
Committed By:   vins
Date:           Sun Jan  5 21:38:22 UTC 2025

Added Files:
        pkgsrc/sysutils/xfile: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/xfile/files: xfile.desktop
        pkgsrc/sysutils/xfile/patches: patch-Makefile
            patch-addon_types_archive.db patch-mf_Makefile.pkgsrc
            patch-src_common.mf patch-src_mkicons.sh patch-src_xfile.service

Log Message:
sysutils/xfile: initial import of package

XFile is a compact file manager for Unix and alike systems running X11.
It presents the file system as is, without imaginary locations,
trashcans etc. XFile uses its own file type association database written
in typical Unix/RC file syntax. Mounting support for file systems
defined in fstab, and integration with mount daemons that manage a
dedicated media directory is also included.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/xfile/DESCR \
    pkgsrc/sysutils/xfile/Makefile pkgsrc/sysutils/xfile/PLIST \
    pkgsrc/sysutils/xfile/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/xfile/files/xfile.desktop
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/xfile/patches/patch-Makefile \
    pkgsrc/sysutils/xfile/patches/patch-addon_types_archive.db \
    pkgsrc/sysutils/xfile/patches/patch-mf_Makefile.pkgsrc \
    pkgsrc/sysutils/xfile/patches/patch-src_common.mf \
    pkgsrc/sysutils/xfile/patches/patch-src_mkicons.sh \
    pkgsrc/sysutils/xfile/patches/patch-src_xfile.service

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/sysutils/xfile/DESCR
diff -u /dev/null pkgsrc/sysutils/xfile/DESCR:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/DESCR Sun Jan  5 21:38:21 2025
@@ -0,0 +1,6 @@
+XFile is a compact file manager for Unix and alike systems running X11.
+It presents the file system as is, without imaginary locations,
+trashcans etc. XFile uses its own file type association database written
+in typical Unix/RC file syntax. Mounting support for file systems
+defined in fstab, and integration with mount daemons that manage a
+dedicated media directory is also included.
Index: pkgsrc/sysutils/xfile/Makefile
diff -u /dev/null pkgsrc/sysutils/xfile/Makefile:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/Makefile      Sun Jan  5 21:38:21 2025
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.1 2025/01/05 21:38:21 vins Exp $
+
+DISTNAME=      xfile-src-1.0-beta
+PKGNAME=       ${DISTNAME:S/-src//:S/-beta/beta/}
+CATEGORIES=    sysutils x11
+MASTER_SITES=  https://fastestcode.org/dl/
+DIST_SUBDIR=   ${PKGNAME_NOREV}
+EXTRACT_SUFX=  .tar.xz
+DISTFILES+=    ${DEFAULT_DISTFILES} xfile-xdgsvc-src.tar.xz    \
+               xfile-slanted-icons.tar.xz
+
+MAINTAINER=    vins%NetBSD.org@localhost
+HOMEPAGE=      https://fastestcode.org/xfile.html
+COMMENT=       File manager for Unix/X11
+LICENSE=       mit
+
+MAKE_JOBS_SAFE=        no
+
+USE_TOOLS+=            awk sed sh
+USE_BSD_MAKEFILE=      yes
+
+SHAREDIR=      ${PREFIX}/share/${PKGBASE}
+
+SUBST_CLASSES+=                pkgsrc
+SUBST_STAGE.pkgsrc=    pre-configure
+SUBST_FILES.pkgsrc=    mf/Makefile.pkgsrc src/mkicons.sh src/xfile.service
+SUBST_VARS.pkgsrc+=    PKGBASE PREFIX PKGMANDIR SED SHAREDIR
+SUBST_MESSAGE.pkgsrc=  Replacing pkgsrc placeholders
+
+MAKE_FLAGS+=   CC=${CC:Q}
+MAKE_FLAGS+=   CFLAGS=${CFLAGS:Q}
+MAKE_FLAGS+=   LDFLAGS=${LDFLAGS:Q}
+MAKE_FLAGS+=   SHELL=${SH:Q}
+MAKE_FLAGS+=   AWK=${AWK:Q}
+
+WRKSRC=        ${WRKDIR}/xfile-beta
+
+post-extract:
+       ${RUN}${MV} ${WRKDIR}/slanted-icons/*.xpm       \
+               ${WRKSRC}/addon/icons/
+.for f in xfile-xdg.c xfile.service
+       ${RUN}${MV} ${WRKDIR}/xfile-xdgsvc/${f} ${WRKSRC}/src
+.endfor
+
+INSTALLATION_DIRS+=    share/applications
+
+post-install:
+       ${RUN}${LN} -s ${DESTDIR}${PREFIX}/bin/xfile    \
+               ${DESTDIR}${PREFIX}/bin/xfile-open
+       ${INSTALL_DATA} ${WRKSRC}/addon/icons/*.xpm     \
+               ${DESTDIR}${SHAREDIR}/icons
+       ${INSTALL_DATA} ${WRKSRC}/addon/types/*.db      \
+               ${DESTDIR}${SHAREDIR}/types
+       ${INSTALL_DATA} ${FILESDIR}/xfile.desktop       \
+               ${DESTDIR}${PREFIX}/share/applications
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../sysutils/dbus/buildlink3.mk"
+.include "../../mk/motif.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/xfile/PLIST
diff -u /dev/null pkgsrc/sysutils/xfile/PLIST:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/PLIST Sun Jan  5 21:38:21 2025
@@ -0,0 +1,175 @@
+@comment $NetBSD: PLIST,v 1.1 2025/01/05 21:38:21 vins Exp $
+bin/xfile
+bin/xfile-open
+bin/xfile-xdgsvc
+lib/X11/app-defaults/XFile
+man/man1/xfile.1
+share/applications/xfile.desktop
+share/dbus-1/services/xfile.service
+share/doc/xfile/README
+share/doc/xfile/README.icons
+share/pixmaps/xfile_48x48.xpm
+share/xfile/icons/arch.l.xpm
+share/xfile/icons/arch.m.xpm
+share/xfile/icons/arch.s.xpm
+share/xfile/icons/arch.t.xpm
+share/xfile/icons/audio.l.xpm
+share/xfile/icons/audio.m.xpm
+share/xfile/icons/audio.s.xpm
+share/xfile/icons/audio.t.xpm
+share/xfile/icons/bin.l.xpm
+share/xfile/icons/bin.m.xpm
+share/xfile/icons/bin.s.xpm
+share/xfile/icons/bin.t.xpm
+share/xfile/icons/blend.l.xpm
+share/xfile/icons/blend.m.xpm
+share/xfile/icons/blend.s.xpm
+share/xfile/icons/blend.t.xpm
+share/xfile/icons/cinc.l.xpm
+share/xfile/icons/cinc.m.xpm
+share/xfile/icons/cinc.s.xpm
+share/xfile/icons/cinc.t.xpm
+share/xfile/icons/comp.l.xpm
+share/xfile/icons/comp.m.xpm
+share/xfile/icons/comp.s.xpm
+share/xfile/icons/comp.t.xpm
+share/xfile/icons/csrc.l.xpm
+share/xfile/icons/csrc.m.xpm
+share/xfile/icons/csrc.s.xpm
+share/xfile/icons/csrc.t.xpm
+share/xfile/icons/cxxinc.l.xpm
+share/xfile/icons/cxxinc.m.xpm
+share/xfile/icons/cxxinc.s.xpm
+share/xfile/icons/cxxinc.t.xpm
+share/xfile/icons/cxxsrc.l.xpm
+share/xfile/icons/cxxsrc.m.xpm
+share/xfile/icons/cxxsrc.s.xpm
+share/xfile/icons/cxxsrc.t.xpm
+share/xfile/icons/dir.l.xpm
+share/xfile/icons/dir.m.xpm
+share/xfile/icons/dir.s.xpm
+share/xfile/icons/dir.t.xpm
+share/xfile/icons/dir.xl.xpm
+share/xfile/icons/dlink.l.xpm
+share/xfile/icons/dlink.m.xpm
+share/xfile/icons/dlink.s.xpm
+share/xfile/icons/dlink.t.xpm
+share/xfile/icons/elf.l.xpm
+share/xfile/icons/elf.m.xpm
+share/xfile/icons/elf.s.xpm
+share/xfile/icons/elf.t.xpm
+share/xfile/icons/exec.l.xpm
+share/xfile/icons/exec.m.xpm
+share/xfile/icons/exec.s.xpm
+share/xfile/icons/exec.t.xpm
+share/xfile/icons/file.l.xpm
+share/xfile/icons/file.m.xpm
+share/xfile/icons/file.s.xpm
+share/xfile/icons/file.t.xpm
+share/xfile/icons/http.l.xpm
+share/xfile/icons/http.m.xpm
+share/xfile/icons/http.s.xpm
+share/xfile/icons/http.t.xpm
+share/xfile/icons/info.l.xpm
+share/xfile/icons/info.m.xpm
+share/xfile/icons/info.s.xpm
+share/xfile/icons/info.t.xpm
+share/xfile/icons/isocd.l.xpm
+share/xfile/icons/isocd.m.xpm
+share/xfile/icons/isocd.s.xpm
+share/xfile/icons/isocd.t.xpm
+share/xfile/icons/kra.l.xpm
+share/xfile/icons/kra.m.xpm
+share/xfile/icons/kra.s.xpm
+share/xfile/icons/kra.t.xpm
+share/xfile/icons/makefile.l.xpm
+share/xfile/icons/makefile.m.xpm
+share/xfile/icons/makefile.s.xpm
+share/xfile/icons/makefile.t.xpm
+share/xfile/icons/mpt.l.xpm
+share/xfile/icons/mpt.m.xpm
+share/xfile/icons/mpt.s.xpm
+share/xfile/icons/mpt.t.xpm
+share/xfile/icons/mpt.xl.xpm
+share/xfile/icons/mpti.l.xpm
+share/xfile/icons/mpti.m.xpm
+share/xfile/icons/mpti.s.xpm
+share/xfile/icons/mpti.t.xpm
+share/xfile/icons/mpti.xl.xpm
+share/xfile/icons/nrfile.l.xpm
+share/xfile/icons/nrfile.m.xpm
+share/xfile/icons/nrfile.s.xpm
+share/xfile/icons/nrfile.t.xpm
+share/xfile/icons/nxdir.l.xpm
+share/xfile/icons/nxdir.m.xpm
+share/xfile/icons/nxdir.s.xpm
+share/xfile/icons/nxdir.t.xpm
+share/xfile/icons/nxdir.xl.xpm
+share/xfile/icons/ofcalc.l.xpm
+share/xfile/icons/ofcalc.m.xpm
+share/xfile/icons/ofcalc.s.xpm
+share/xfile/icons/ofcalc.t.xpm
+share/xfile/icons/ofdraw.l.xpm
+share/xfile/icons/ofdraw.m.xpm
+share/xfile/icons/ofdraw.s.xpm
+share/xfile/icons/ofdraw.t.xpm
+share/xfile/icons/ofwp.l.xpm
+share/xfile/icons/ofwp.m.xpm
+share/xfile/icons/ofwp.s.xpm
+share/xfile/icons/ofwp.t.xpm
+share/xfile/icons/paint.l.xpm
+share/xfile/icons/paint.m.xpm
+share/xfile/icons/paint.s.xpm
+share/xfile/icons/paint.t.xpm
+share/xfile/icons/pdf.l.xpm
+share/xfile/icons/pdf.m.xpm
+share/xfile/icons/pdf.s.xpm
+share/xfile/icons/pdf.t.xpm
+share/xfile/icons/pixmap.l.xpm
+share/xfile/icons/pixmap.m.xpm
+share/xfile/icons/pixmap.s.xpm
+share/xfile/icons/pixmap.t.xpm
+share/xfile/icons/script.l.xpm
+share/xfile/icons/script.m.xpm
+share/xfile/icons/script.s.xpm
+share/xfile/icons/script.t.xpm
+share/xfile/icons/sh.l.xpm
+share/xfile/icons/sh.m.xpm
+share/xfile/icons/sh.s.xpm
+share/xfile/icons/sh.t.xpm
+share/xfile/icons/tar.l.xpm
+share/xfile/icons/tar.m.xpm
+share/xfile/icons/tar.s.xpm
+share/xfile/icons/tar.t.xpm
+share/xfile/icons/targa.l.xpm
+share/xfile/icons/targa.m.xpm
+share/xfile/icons/targa.s.xpm
+share/xfile/icons/targa.t.xpm
+share/xfile/icons/text.l.xpm
+share/xfile/icons/text.m.xpm
+share/xfile/icons/text.s.xpm
+share/xfile/icons/text.t.xpm
+share/xfile/icons/typeset.l.xpm
+share/xfile/icons/typeset.m.xpm
+share/xfile/icons/typeset.s.xpm
+share/xfile/icons/typeset.t.xpm
+share/xfile/icons/video.l.xpm
+share/xfile/icons/video.m.xpm
+share/xfile/icons/video.s.xpm
+share/xfile/icons/video.t.xpm
+share/xfile/icons/xbm.l.xpm
+share/xfile/icons/xbm.m.xpm
+share/xfile/icons/xbm.s.xpm
+share/xfile/icons/xbm.t.xpm
+share/xfile/icons/xcf.l.xpm
+share/xfile/icons/xcf.m.xpm
+share/xfile/icons/xcf.s.xpm
+share/xfile/icons/xcf.t.xpm
+share/xfile/icons/xpm.l.xpm
+share/xfile/icons/xpm.m.xpm
+share/xfile/icons/xpm.s.xpm
+share/xfile/icons/xpm.t.xpm
+share/xfile/types/archive.db
+share/xfile/types/graphics.db
+share/xfile/types/office.db
+share/xfile/types/system.db
Index: pkgsrc/sysutils/xfile/distinfo
diff -u /dev/null pkgsrc/sysutils/xfile/distinfo:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/distinfo      Sun Jan  5 21:38:21 2025
@@ -0,0 +1,17 @@
+$NetBSD: distinfo,v 1.1 2025/01/05 21:38:21 vins Exp $
+
+BLAKE2s (xfile-1.0beta/xfile-slanted-icons.tar.xz) = 05d15677163ae69cd7184af0f96006303129d70ab4bebecf5187399f4b6b2761
+SHA512 (xfile-1.0beta/xfile-slanted-icons.tar.xz) = 0598f553d8f45487ceedd0495a115d0f1618e2fb18657e3d9ce7ae3ef0040c9b06aa9bf7224eeb59856f9e9f1258a666a4c52f46ca5edd25f8e29e4105387d50
+Size (xfile-1.0beta/xfile-slanted-icons.tar.xz) = 1772 bytes
+BLAKE2s (xfile-1.0beta/xfile-src-1.0-beta.tar.xz) = aa42deedabd1da7ca1b2b69da578dc23cfcc362ebf206b9ad4629b18a1874e6f
+SHA512 (xfile-1.0beta/xfile-src-1.0-beta.tar.xz) = 9362f1c1f940221ec1dd609b4b82a42c325283c824908aa41bac33de5d5928ec756397dd5579f793df660e029d9f3dd139555d83ffab76caea1e4c3694030f7d
+Size (xfile-1.0beta/xfile-src-1.0-beta.tar.xz) = 111280 bytes
+BLAKE2s (xfile-1.0beta/xfile-xdgsvc-src.tar.xz) = 17134f7556d67f1d340733e106c2b17903306ec07ad760fcd418f09b8f35df93
+SHA512 (xfile-1.0beta/xfile-xdgsvc-src.tar.xz) = df53d6db5eef47d3c1252d2a9346f0c56ec474622c54ebe0f3cb39ce45cca876315fa9e2ac333295f0be46e812b21b8d2e14bc08f9dc5914cd3aee2cdfac87b4
+Size (xfile-1.0beta/xfile-xdgsvc-src.tar.xz) = 3616 bytes
+SHA1 (patch-Makefile) = 1316be75730b7823d5f0f00adb243bc5b9100f26
+SHA1 (patch-addon_types_archive.db) = 62a95a0fc05a86771e9a0f9ab4c0c9be3e42eba7
+SHA1 (patch-mf_Makefile.pkgsrc) = 4f10424911a8216d2aa5362d30b38689bb0880d0
+SHA1 (patch-src_common.mf) = 52e5dcac5c82c61d1a7b34ed23e95a44ea7be9a4
+SHA1 (patch-src_mkicons.sh) = fba5d7bd304d14bdbbee39146302f8c427601b1a
+SHA1 (patch-src_xfile.service) = 5e412271706f83715e8b410162639852623c55f5

Index: pkgsrc/sysutils/xfile/files/xfile.desktop
diff -u /dev/null pkgsrc/sysutils/xfile/files/xfile.desktop:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/files/xfile.desktop   Sun Jan  5 21:38:21 2025
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Type=Application
+Name=XFile/Open
+GenericName=File Manager
+Comment=File manager for Unix/X11
+Exec=xfile-open %f%
+MimeType=inode/directory;
+Icon=xfile_48x48
+Terminal=false
+Categories=FileManager;Utility;System;
+MimeType=inode/directory;
+StartupNotify=false

Index: pkgsrc/sysutils/xfile/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/xfile/patches/patch-Makefile:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/patches/patch-Makefile        Sun Jan  5 21:38:22 2025
@@ -0,0 +1,18 @@
+$NetBSD: patch-Makefile,v 1.1 2025/01/05 21:38:22 vins Exp $
+
+Prefer pkgsrc Makefile.
+
+--- Makefile.orig      2024-12-08 10:46:59.443489899 +0000
++++ Makefile
+@@ -2,7 +2,10 @@ all:
+       @if [ -e src/Makefile ]; then \
+               $(MAKE) -C src $(MAKEFLAGS); \
+       else \
+-              if [ -e mf/Makefile.$$(uname) ]; then \
++               if [ -e mf/Makefile.pkgsrc ]; then \
++                      ln -s ../mf/Makefile.pkgsrc src/Makefile && \
++                      $(MAKE) -C src $(MAKEFLAGS); \
++              elif [ -e mf/Makefile.$$(uname) ]; then \
+                       ln -s ../mf/Makefile.$$(uname) src/Makefile && \
+                       $(MAKE) -C src $(MAKEFLAGS); \
+               else \
Index: pkgsrc/sysutils/xfile/patches/patch-addon_types_archive.db
diff -u /dev/null pkgsrc/sysutils/xfile/patches/patch-addon_types_archive.db:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/patches/patch-addon_types_archive.db  Sun Jan  5 21:38:22 2025
@@ -0,0 +1,35 @@
+$NetBSD: patch-addon_types_archive.db,v 1.1 2025/01/05 21:38:22 vins Exp $
+
+Fix runtime warning: 'Cannot parse file type database'
+
+--- addon/types/archive.db.orig        2024-12-28 23:18:37.000000000 +0000
++++ addon/types/archive.db
+@@ -6,8 +6,8 @@ ZIP Archive {
+               *.zip
+               *.ZIP
+       }
+-      &List: %terminal "unzip -l %n | less"
+-      &Extract: %terminalHold unzip %n
++      action &List: %terminal "unzip -l %n | less"
++      action &Extract: %terminalHold unzip %n
+ }
+ 
+ RAR Archive {
+@@ -16,8 +16,8 @@ RAR Archive {
+               *.rar
+               *.RAR
+       }
+-      &List: %terminal "unrar l %n | less"
+-      &Extract: %terminalHold unrar e %n
++      action &List: %terminal "unrar l %n | less"
++      action &Extract: %terminalHold unrar e %n
+ }
+ 
+ 7ZIP Archive {
+@@ -26,5 +26,5 @@ RAR Archive {
+               *.7z
+               *.7Z
+       }
+-      &Extract: %terminalHold p7zip -d %n
++      action &Extract: %terminalHold p7zip -d %n
+ }
Index: pkgsrc/sysutils/xfile/patches/patch-mf_Makefile.pkgsrc
diff -u /dev/null pkgsrc/sysutils/xfile/patches/patch-mf_Makefile.pkgsrc:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/patches/patch-mf_Makefile.pkgsrc      Sun Jan  5 21:38:22 2025
@@ -0,0 +1,31 @@
+$NetBSD: patch-mf_Makefile.pkgsrc,v 1.1 2025/01/05 21:38:22 vins Exp $
+
+Add custom Makefile for pkgsrc.
+
+--- mf/Makefile.pkgsrc.orig    2025-01-05 16:52:21.386683075 +0000
++++ mf/Makefile.pkgsrc
+@@ -0,0 +1,24 @@
++# XFile pkgsrc Makefile
++
++PREFIX = @PREFIX@
++BINDIR = @PREFIX@/bin
++MANDIR = @PREFIX@/@PKGMANDIR@
++
++SHAREDIR = @SHAREDIR@
++APPLRESDIR = @PREFIX@/lib/X11/app-defaults
++PIXMAPDIR = @PREFIX@/share/pixmaps
++DOCDIR = @PREFIX@/share/doc/@PKGBASE@
++
++DBUS_INCDIRS = -I@PREFIX@/include/dbus-1.0 -I@PREFIX@/lib/dbus-1.0/include
++
++.include "common.mf"
++
++# Set to APPDEFS_CORE for core fonts
++APPDEFS = $(APPDEFS_XFT)
++
++DEFINES = -DPREFIX='"$(PREFIX)"'
++
++.c.o:
++      $(CC) $(CFLAGS) $(DEFINES) -c -o $(<:.c=.o) $>
++
++install: common_install
Index: pkgsrc/sysutils/xfile/patches/patch-src_common.mf
diff -u /dev/null pkgsrc/sysutils/xfile/patches/patch-src_common.mf:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/patches/patch-src_common.mf   Sun Jan  5 21:38:22 2025
@@ -0,0 +1,96 @@
+$NetBSD: patch-src_common.mf,v 1.1 2025/01/05 21:38:22 vins Exp $
+
+* Use standard CFLAGS and LDFLAGS.
+* Point to default awk implementation path.
+* Provide a pkgsrc-compliant install target.
+* Build and install DBus support.
+
+--- src/common.mf.orig 2024-12-28 23:18:37.000000000 +0000
++++ src/common.mf
+@@ -3,8 +3,7 @@
+ 
+ X_LIBS = -lX11 -lXinerama -lXm -lXt -lXpm
+ SYS_LIBS = -lm -lc
+-
+-CFLAGS += -DPREFIX='"$(PREFIX)"' $(INCDIRS)
++DBUS_LIBS = -ldbus-1
+ 
+ XFILE_OBJS = main.o menu.o defaults.o comdlgs.o guiutil.o typedb.o \
+       path.o listw.o pathw.o filemgr.o graphics.o cbproc.o exec.o \
+@@ -13,10 +12,10 @@ XFILE_OBJS = main.o menu.o defaults.o co
+ 
+ .PHONY: clean install uninstall
+ 
+-all: .depend xfile.ad xfile.1 xfile
++all: .depend xfile.ad xfile.1 xfile xfile-xdgsvc
+ 
+ xfile: icons.h $(XFILE_OBJS)
+-      $(CC) $(LDFLAGS) $(LIBDIRS) -o $@ $(XFILE_OBJS) $(X_LIBS) $(SYS_LIBS)
++      $(CC) $(LDFLAGS) -o $@ $(XFILE_OBJS) $(X_LIBS) $(SYS_LIBS)
+ 
+ # Built-in icons
+ icons.h: mkicons.sh icons/*.xpm
+@@ -31,7 +30,13 @@ xfile.ad: $(APPDEFS)
+ 
+ # Default (fallback) resources
+ defaults.c: xfile.ad
+-      awk -f adtoc.awk xfile.ad > $@
++      $(AWK) -f adtoc.awk xfile.ad > $@
++
++# XDG shim (DBus support)
++xfile-xdg.o: xfile-xdg.c
++      $(CC) $(CFLAGS) $(DBUS_INCDIRS) -c $< -o $@
++xfile-xdgsvc: xfile-xdg.o
++      $(CC) $(LDFLAGS) -o $@ xfile-xdg.o $(DBUS_LIBS)
+ 
+ # Manpage
+ MANUAL = man/intro.man man/gui.man man/db.man man/res.man man/footer.man
+@@ -43,29 +48,32 @@ clean:
+       -rm defaults.c icons.h
+       -rm xfile.ad
+       -rm xfile.1
++      -rm xfile-xdg
+       -rm .depend
+       -rm $(XFILE_OBJS) xfile
+ 
+ # Dependencies
+ .depend: $(XFILE_OBJS:.o=.c) icons.h
+-      $(CC) -MM $(INCDIRS) $(XFILE_OBJS:.o=.c) > .depend
++      $(CC) -MM $(CFLAGS) $(DEFINES) $(XFILE_OBJS:.o=.c) > .depend
+ 
+ # Install
+-common_install: xfile xfile.ad xfile.1
+-      install -o 0 -g 0 -m755 -d $(PREFIX)
+-      install -o 0 -g 0 -m755 xfile $(PREFIX)/bin/xfile
+-      -ln -s $(PREFIX)/bin/xfile $(PREFIX)/bin/xfile-open
+-      install -o 0 -g 0 -m 755 -d $(MANDIR)/man1
+-      install -o 0 -g 0 -m 644 xfile.1 $(MANDIR)/man1/xfile.1
+-      install -o 0 -g 0 -m 755 -d $(APPLRESDIR)
+-      install -o 0 -g 0 -m 644 xfile.ad $(APPLRESDIR)/XFile
+-      install -o 0 -g 0 -m 755 -d $(SHAREDIR)/types
+-      install -o 0 -g 0 -m 644 default.db $(SHAREDIR)/types/system.db
+-      install -o 0 -g 0 -m 755 -d $(SHAREDIR)/icons
+-      for n in icons/*.xpm; do install -o 0 -g 0 -m 664 $$n $(SHAREDIR)/$$n; done
+-      install -o 0 -g 0 -m 644 icons/README $(SHAREDIR)/README.icons
+-      install -o 0 -g 0 -m 644 xbm/cabinet.xpm $(PREFIX)/share/pixmaps/xfile_48x48.xpm
+-
++common_install: xfile xfile.ad xfile.1 xfile-xdgsvc
++      $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDIR)
++      $(BSD_INSTALL_PROGRAM) xfile xfile-xdgsvc $(DESTDIR)$(BINDIR)
++      $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(MANDIR)/man1
++      $(BSD_INSTALL_MAN) xfile.1 $(DESTDIR)$(MANDIR)/man1
++      $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(SHAREDIR) $(DESTDIR)$(APPLRESDIR)
++      $(BSD_INSTALL_DATA) xfile.ad $(DESTDIR)$(APPLRESDIR)/XFile
++      $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(SHAREDIR)/icons $(DESTDIR)$(SHAREDIR)/types
++      $(BSD_INSTALL_DATA) default.db $(DESTDIR)$(SHAREDIR)/types/system.db
++      for n in icons/*.xpm; do $(BSD_INSTALL_DATA) $$n $(DESTDIR)$(SHAREDIR)/$$n; done
++      $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/share/dbus-1/services
++      $(BSD_INSTALL_DATA) xfile.service $(DESTDIR)$(PREFIX)/share/dbus-1/services
++      $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PIXMAPDIR) $(DESTDIR)$(DOCDIR)
++      $(BSD_INSTALL_DATA) xbm/cabinet.xpm $(DESTDIR)$(PIXMAPDIR)/xfile_48x48.xpm
++      $(BSD_INSTALL_DATA) ../README $(DESTDIR)$(DOCDIR)
++      $(BSD_INSTALL_DATA) icons/README $(DESTDIR)$(DOCDIR)/README.icons
++      
+ # Removal
+ uninstall:
+       rm -f $(PREFIX)/bin/xfile
Index: pkgsrc/sysutils/xfile/patches/patch-src_mkicons.sh
diff -u /dev/null pkgsrc/sysutils/xfile/patches/patch-src_mkicons.sh:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/patches/patch-src_mkicons.sh  Sun Jan  5 21:38:22 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_mkicons.sh,v 1.1 2025/01/05 21:38:22 vins Exp $
+
+Point to default sed tool path.
+
+--- src/mkicons.sh.orig        2025-01-05 10:51:11.537448173 +0000
++++ src/mkicons.sh
+@@ -22,7 +22,7 @@ printf 'struct xpm_data { char *name; ch
+ 
+ for n in $ICONS; do
+       for s in $SIZES; do
+-              cat "icons/$n.$s.xpm" | sed -e 's/_xpm//g' >> $TGT
++              cat "icons/$n.$s.xpm" | @SED@ -e 's/_xpm//g' >> $TGT
+       done
+ done
+ 
Index: pkgsrc/sysutils/xfile/patches/patch-src_xfile.service
diff -u /dev/null pkgsrc/sysutils/xfile/patches/patch-src_xfile.service:1.1
--- /dev/null   Sun Jan  5 21:38:22 2025
+++ pkgsrc/sysutils/xfile/patches/patch-src_xfile.service       Sun Jan  5 21:38:22 2025
@@ -0,0 +1,11 @@
+$NetBSD: patch-src_xfile.service,v 1.1 2025/01/05 21:38:22 vins Exp $
+
+pkgsrc prefix support
+
+--- src/xfile.service.orig     2024-07-19 19:11:18.000000000 +0000
++++ src/xfile.service
+@@ -1,3 +1,3 @@
+ [D-BUS Service]
+ Name=org.freedesktop.FileManager1
+-Exec=/usr/bin/xfile-xdgsvc
++Exec=@PREFIX@/bin/xfile-xdgsvc



Home | Main Index | Thread Index | Old Index