2011-04-30 21:50:56 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2011/04/30 19:50:56 stacktic Exp $
|
Initial import of fs-utils-20080925 (ok by wiz).
Tools to access and modify a file system image without having to
mount it.
Classic commands included (prefixed with fsu_):
* cat, diff, du, find, ls
* chflags, chmod, chown, mv, rm, rmdir
* cp, ln, mkdir, mkfifo, mknod, touch
New commands:
* fsu_ecp (cp-like which allows the user to get/put files from/to the image)
* fsu_exec (executes a local command like text editor on a file from the image)
* fsu_write (writes its input in a file on the image)
* fsu_console (a command console tool that uses previous commands and adds
directory browsing)
This package is enabled only for NetBSD 4.99.72 and newer.
2008-09-29 17:11:35 +02:00
|
|
|
#
|
|
|
|
|
2009-11-16 16:39:07 +01:00
|
|
|
DISTNAME= fs-utils_20091116
|
2009-11-02 19:58:10 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2011-04-30 21:50:56 +02:00
|
|
|
PKGREVISION= 1
|
2009-11-02 19:58:10 +01:00
|
|
|
CATEGORIES= filesystems
|
|
|
|
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/stacktic/
|
Initial import of fs-utils-20080925 (ok by wiz).
Tools to access and modify a file system image without having to
mount it.
Classic commands included (prefixed with fsu_):
* cat, diff, du, find, ls
* chflags, chmod, chown, mv, rm, rmdir
* cp, ln, mkdir, mkfifo, mknod, touch
New commands:
* fsu_ecp (cp-like which allows the user to get/put files from/to the image)
* fsu_exec (executes a local command like text editor on a file from the image)
* fsu_write (writes its input in a file on the image)
* fsu_console (a command console tool that uses previous commands and adds
directory browsing)
This package is enabled only for NetBSD 4.99.72 and newer.
2008-09-29 17:11:35 +02:00
|
|
|
|
2009-11-02 19:58:10 +01:00
|
|
|
MAINTAINER= stacktic@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.NetBSD.org/~stacktic/fs-utils.html
|
|
|
|
COMMENT= Tools to access/modify a file system image through RUMP
|
Initial import of fs-utils-20080925 (ok by wiz).
Tools to access and modify a file system image without having to
mount it.
Classic commands included (prefixed with fsu_):
* cat, diff, du, find, ls
* chflags, chmod, chown, mv, rm, rmdir
* cp, ln, mkdir, mkfifo, mknod, touch
New commands:
* fsu_ecp (cp-like which allows the user to get/put files from/to the image)
* fsu_exec (executes a local command like text editor on a file from the image)
* fsu_write (writes its input in a file on the image)
* fsu_console (a command console tool that uses previous commands and adds
directory browsing)
This package is enabled only for NetBSD 4.99.72 and newer.
2008-09-29 17:11:35 +02:00
|
|
|
|
2009-11-02 19:58:10 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-[5-9]*-* FreeBSD-*-* Linux-*-*
|
Initial import of fs-utils-20080925 (ok by wiz).
Tools to access and modify a file system image without having to
mount it.
Classic commands included (prefixed with fsu_):
* cat, diff, du, find, ls
* chflags, chmod, chown, mv, rm, rmdir
* cp, ln, mkdir, mkfifo, mknod, touch
New commands:
* fsu_ecp (cp-like which allows the user to get/put files from/to the image)
* fsu_exec (executes a local command like text editor on a file from the image)
* fsu_write (writes its input in a file on the image)
* fsu_console (a command console tool that uses previous commands and adds
directory browsing)
This package is enabled only for NetBSD 4.99.72 and newer.
2008-09-29 17:11:35 +02:00
|
|
|
|
2008-12-18 16:25:38 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_BSD_MAKEFILE= yes
|
2009-11-02 19:58:10 +01:00
|
|
|
WRKSRC= ${WRKDIR}/fs-utils
|
|
|
|
INSTALLATION_DIRS= bin lib include ${PKGMANDIR}/man1 ${PKGMANDIR}/man3
|
|
|
|
|
|
|
|
SUBST_CLASSES+= path
|
|
|
|
SUBST_STAGE.path= pre-configure
|
|
|
|
SUBST_MESSAGE.path= Adjusting path.
|
2009-11-16 16:39:07 +01:00
|
|
|
SUBST_FILES.path= Makefile.gen
|
|
|
|
SUBST_SED.path= -e "s|/usr/pkg|${PREFIX}|g"
|
2009-11-02 19:58:10 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_utils/fsu_fts.h \
|
|
|
|
${DESTDIR}${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_utils/fsu_utils.h \
|
|
|
|
${DESTDIR}${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_utils/fts2fsufts.h \
|
|
|
|
${DESTDIR}${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_mount/fsu_mount.h \
|
|
|
|
${DESTDIR}${PREFIX}/include
|
|
|
|
|
|
|
|
OSNAME!= uname -s
|
|
|
|
.if ${OSNAME} != "NetBSD"
|
|
|
|
MAKEFLAGS+= NOGCCERROR=1
|
|
|
|
USE_FEATURES= nbcompat
|
2009-11-16 16:39:07 +01:00
|
|
|
NBCOMPAT_CONFIGURE_ARGS+= CFLAGS='-D_FILE_OFFSET_BITS=64 -fPIC'
|
|
|
|
NBCOMPAT_CONFIGURE_ARGS+= CPPFLAGS='-DPIC'
|
|
|
|
NBCOMPAT_CONFIGURE_ARGS+= --enable-bsd-getopt
|
2008-12-18 16:25:38 +01:00
|
|
|
|
2009-11-02 19:58:10 +01:00
|
|
|
.include "../../misc/rump/buildlink3.mk"
|
|
|
|
.endif # !NetBSD
|
Initial import of fs-utils-20080925 (ok by wiz).
Tools to access and modify a file system image without having to
mount it.
Classic commands included (prefixed with fsu_):
* cat, diff, du, find, ls
* chflags, chmod, chown, mv, rm, rmdir
* cp, ln, mkdir, mkfifo, mknod, touch
New commands:
* fsu_ecp (cp-like which allows the user to get/put files from/to the image)
* fsu_exec (executes a local command like text editor on a file from the image)
* fsu_write (writes its input in a file on the image)
* fsu_console (a command console tool that uses previous commands and adds
directory browsing)
This package is enabled only for NetBSD 4.99.72 and newer.
2008-09-29 17:11:35 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|