diff --git a/sysutils/Makefile b/sysutils/Makefile index 3335aa28fdf9..d700c2332053 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -849,6 +849,7 @@ SUBDIR += pwd_unmkdb SUBDIR += pwgen SUBDIR += pwsafe + SUBDIR += pxattr SUBDIR += py-XenAPI SUBDIR += py-analyzemft SUBDIR += py-bcfg2 diff --git a/sysutils/pxattr/Makefile b/sysutils/pxattr/Makefile new file mode 100644 index 000000000000..89060bf4eb2c --- /dev/null +++ b/sysutils/pxattr/Makefile @@ -0,0 +1,26 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= pxattr +PORTVERSION= 2.1.0 +CATEGORIES= sysutils +MASTER_SITES= http://www.lesbonscomptes.com/pxattr/ + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Portable utility to work with file extended attributes + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= * + +OPTIONS_DEFINE= DOCS + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +post-install-DOCS-on: + cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + +.include diff --git a/sysutils/pxattr/distinfo b/sysutils/pxattr/distinfo new file mode 100644 index 000000000000..c4585cb84cbe --- /dev/null +++ b/sysutils/pxattr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1359827271 +SHA256 (pxattr-2.1.0.tar.gz) = df94afe3d6867f9d3afd04d6284d3dd80ab9126955e8087f50f5bff30bc38cb7 +SIZE (pxattr-2.1.0.tar.gz) = 60216 diff --git a/sysutils/pxattr/files/patch-pxattr.cpp b/sysutils/pxattr/files/patch-pxattr.cpp new file mode 100644 index 000000000000..9f21ad662f9d --- /dev/null +++ b/sysutils/pxattr/files/patch-pxattr.cpp @@ -0,0 +1,11 @@ +--- pxattr.cpp.orig 2013-02-02 17:45:27 UTC ++++ pxattr.cpp +@@ -802,7 +802,7 @@ void printxattr(const string &path, con + + void delxattr(const string &path, const string& name) + { +- if (pxattr::del(path, name) < 0) { ++ if (!pxattr::del(path, name)) { + perror("pxattr::del"); + exit(1); + } diff --git a/sysutils/pxattr/pkg-descr b/sysutils/pxattr/pkg-descr new file mode 100644 index 000000000000..eaf345e1d6a3 --- /dev/null +++ b/sysutils/pxattr/pkg-descr @@ -0,0 +1,19 @@ +Extended attributes are arbitrarily named pieces of data associated with +a file and managed by the file system. + +The names and the values for the attributes are freely chosen by +applications and/or users, with very few restrictions. Many recent +systems and filesystems support extended attributes, but the interfaces +used to manage them are far from identical. + +Linux, FreeBSD, and Mac OS X all provide similar extended attributes +functionality. + +The pxattr package aims at providing a single interface to extended +attributes on all three systems. It consists in a single C++ module +(one source and one include file), which is to be included in the +application source code, or can be built as a reference command-line +utility to manage user extended attributes in a uniform and cross- +platform way. It includes an attributes archive/restore facility. + +WWW: http://www.lesbonscomptes.com/pxattr/