Bug 77108 - New port: misc/wipe - Wipe is a secure file wiping utility
Summary: New port: misc/wipe - Wipe is a secure file wiping utility
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 21:10 UTC by Edson Brandi
Modified: 2005-03-05 16:06 UTC (History)
0 users

See Also:


Attachments
wipe.shar (1.67 KB, text/plain)
2005-02-04 21:10 UTC, Edson Brandi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edson Brandi 2005-02-04 21:10:04 UTC
 	New port for wipe-2.2.0, Wipe is a secure file wiping utility (secure file deletion).

How-To-Repeat: 
NA
Comment 1 Ion-Mihai " IOnut " Tetcu 2005-02-04 21:51:41 UTC
On Fri, 4 Feb 2005 18:22:21 -0200 (BRDT)
Edson Brandi <ebrandi@fugspbr.org> wrote:

> echo x - wipe/pkg-plist
> sed 's/^X//' >wipe/pkg-plist << 'END-of-wipe/pkg-plist'
> Xbin/wipe
> Xshare/doc/wipe/CHANGES
> Xshare/doc/wipe/INSTALL
> Xshare/doc/wipe/LICENSE
> Xshare/doc/wipe/README
> Xshare/doc/wipe/TESTING
> Xshare/doc/wipe/TODO
> Xshare/doc/wipe/copyright
> Xshare/nls/POSIX
> Xshare/nls/en_US.US-ASCII
> X@dirrm share/doc/wipe
> END-of-wipe/pkg-plist

You should use %%DOCSDIR%% macro (instead of share/doc/wipe) in
pkg-plist and try to make docs installation optionally in you Makefile, e.g.
.ifndef(NOPORTDOCS)
 ....... install docs ................
.end

and shouldn't delete share/nls/POSIX and share/nls/en_US.US-ASCII

and @dirrm share/doc/wipe  -->  @dirrm %%DOCSDIR%%


-- 
IOnut
Unregistered ;) FreeBSD "user"
Comment 2 Edson Brandi 2005-02-05 00:00:26 UTC
Thks for information, i dont know how to make docs installation 
optionally, but i has changed other problems and check port with portlint 
;)

[]´s Edson

------ Wipe.shar Begin -------

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	wipe
#	wipe/distinfo
#	wipe/Makefile
#	wipe/pkg-descr
#	wipe/pkg-plist
#
echo c - wipe
mkdir -p wipe > /dev/null 2>&1
echo x - wipe/distinfo
sed 's/^X//' >wipe/distinfo << 'END-of-wipe/distinfo'
XMD5 (wipe-2.2.0.tar.bz2) = 1e1366c6407e7910f6131ebfee9f1ea6
XSIZE (wipe-2.2.0.tar.bz2) = 70134
END-of-wipe/distinfo
echo x - wipe/Makefile
sed 's/^X//' >wipe/Makefile << 'END-of-wipe/Makefile'
X# New ports collection makefile for: wipe
X# Date created:        04 February 2005
X# Whom:                Edson Brandi <ebrandi@fugspbr.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wipe
XPORTVERSION=	2.2.0
XCATEGORIES=	misc
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	ebrandi@fugspbr.org
XCOMMENT=	Wipe is a file and block device wiping utility
X
XUSE_BZIP2= yes
XGNU_CONFIGURE= yes
X
XMAN1= wipe.1
X
X.include <bsd.port.mk>
END-of-wipe/Makefile
echo x - wipe/pkg-descr
sed 's/^X//' >wipe/pkg-descr << 'END-of-wipe/pkg-descr'
XWipe is a file and block device wiping utility
X
XWWW: http://wipe.sourceforge.net/
X
XAuthor: Tom Vier <nester@users.sf.net>
END-of-wipe/pkg-descr
echo x - wipe/pkg-plist
sed 's/^X//' >wipe/pkg-plist << 'END-of-wipe/pkg-plist'
Xbin/wipe
X%%DOCSDIR%%/CHANGES
X%%DOCSDIR%%/INSTALL
X%%DOCSDIR%%/LICENSE
X%%DOCSDIR%%/README
X%%DOCSDIR%%/TESTING
X%%DOCSDIR%%/TODO
X%%DOCSDIR%%/copyright
X@dirrm %%DOCSDIR%%
END-of-wipe/pkg-plist
exit
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2005-02-05 19:07:25 UTC
State Changed
From-To: open->feedback

Does not compile on FreeBSD 5: 

cc -pipe -O2  -ffast-math  -I. -DFREEBSD5  -c blkdev.c 
blkdev.c: In function `destroy_blkdev': 
blkdev.c:131: error: storage size of 'pinfo' isn't known 
blkdev.c:163: error: `DIOCGPART' undeclared (first use in this function) 
blkdev.c:163: error: (Each undeclared identifier is reported only once 
blkdev.c:163: error: for each function it appears in.) 
*** Error code 1 


Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2005-02-05 19:07:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Handle.
Comment 5 Mark Laws 2005-03-05 09:10:16 UTC
Patched to build on OSVERSION > 500039 and cleaned up installation of
portdocs.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	wipe
#	wipe/distinfo
#	wipe/Makefile
#	wipe/pkg-descr
#	wipe/pkg-plist
#	wipe/files
#	wipe/files/patch-aa
#	wipe/files/500040-patch-blkdev.c
#
echo c - wipe
mkdir -p wipe > /dev/null 2>&1
echo x - wipe/distinfo
sed 's/^X//' >wipe/distinfo << 'END-of-wipe/distinfo'
XMD5 (wipe-2.2.0.tar.bz2) = 1e1366c6407e7910f6131ebfee9f1ea6
XSIZE (wipe-2.2.0.tar.bz2) = 70134
END-of-wipe/distinfo
echo x - wipe/Makefile
sed 's/^X//' >wipe/Makefile << 'END-of-wipe/Makefile'
X# New ports collection makefile for:
X# Date created:        04 February 2005
X# Whom:                Edson Brandi <ebrandi@fugspbr.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      wipe
XPORTVERSION=   2.2.0
XCATEGORIES=    misc
XMASTER_SITES=          ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=    ${PORTNAME}
XMAINTAINER=    ebrandi@fugspbr.org
XCOMMENT=       Wipe is a file and block device wiping utility.
XUSE_BZIP2= yes
XGNU_CONFIGURE= yes
XMAN1= wipe.1
XPORTDOCS= CHANGES INSTALL LICENSE README TESTING TODO copyright
X
X.include <bsd.port.pre.mk>
X
Xpre-configure:
X.if ${OSVERSION} > 500039
X	@cd ${WRKSRC} && patch < ${PATCHDIR}/500040-patch-blkdev.c
X.endif
X
Xpost-install:
X	@${INSTALL_MAN} ${WRKSRC}/wipe.1 ${PREFIX}/man/man1
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/wipe
X	@for i in ${PORTDOCS}; do \
X		${INSTALL_DATA} ${WRKSRC}/$$i ${DOCSDIR}; \
X	done
X.endif
X        
X.include <bsd.port.post.mk>
END-of-wipe/Makefile
echo x - wipe/pkg-descr
sed 's/^X//' >wipe/pkg-descr << 'END-of-wipe/pkg-descr'
XWipe is a file and block device wiping utility
X
XWWW: http://wipe.sourceforge.net/
X
XAuthor: Tom Vier <nester@users.sf.net>
END-of-wipe/pkg-descr
echo x - wipe/pkg-plist
sed 's/^X//' >wipe/pkg-plist << 'END-of-wipe/pkg-plist'
Xbin/wipe
END-of-wipe/pkg-plist
echo c - wipe/files
mkdir -p wipe/files > /dev/null 2>&1
echo x - wipe/files/patch-aa
sed 's/^X//' >wipe/files/patch-aa << 'END-of-wipe/files/patch-aa'
X--- Makefile.in.orig     Sat Aug 30 18:18:03 2003
X+++ Makefile.in          Sat Mar  5 00:24:22 2005
X@@ -60,13 +60,6 @@
X 	$(INSTALL_BIN) -d $(bindir)
X 	$(INSTALL_BIN) -s $(BIN_OUT) $(bindir)
X 	$(INSTALL) -d $(mandir)/man1
X-	$(INSTALL) -o root -m 0644 wipe.1 $(mandir)/man1/
X-	rm -rf $(datadir)/doc/wipe*
X-	$(INSTALL) -d $(datadir)/doc/wipe
X-
X-	for file in $(DOCS); do \
X-		$(INSTALL) -o root -m 0644 $$file $(datadir)/doc/wipe/; \
X-	done
X 
X install_home: $(BIN_OUT)
X 	strip $(BIN_OUT)
END-of-wipe/files/patch-aa
echo x - wipe/files/500040-patch-blkdev.c
sed 's/^X//' >wipe/files/500040-patch-blkdev.c << 'END-of-wipe/files/500040-patch-blkdev.c'
X--- blkdev.c.orig   Sun Aug  3 16:07:29 2003
X+++ blkdev.c        Sat Mar  5 00:23:40 2005
X@@ -128,6 +128,10 @@
X   int code;
X 
X #ifdef BSD_BLKDEV
X+  struct partinfo {
X+    struct disklabel *disklab;
X+    struct partition *part;
X+  };
X   struct partinfo pinfo;
X #endif
X 
X@@ -160,7 +164,7 @@
X     }
X 
X #ifdef BSD_BLKDEV
X-  if (ioctl(f->fd, DIOCGPART, &pinfo))
X+  if (ioctl(f->fd, DIOCGDINFO, &pinfo))
X     {
X       fprintf(stderr, "\r%s: ioctl failed, can't get disklabel for `%s': %s\n",
X 	      argvzero, f->name, strerror(errno));
END-of-wipe/files/500040-patch-blkdev.c
exit
Comment 6 Pav Lucistnik freebsd_committer freebsd_triage 2005-03-05 16:06:11 UTC
State Changed
From-To: feedback->closed

New port added under security/, thank you