Bug 82110 - [patch] sysutils/asr-utils: raidutil does not work properly with WITHOUT_X11 knob
Summary: [patch] sysutils/asr-utils: raidutil does not work properly with WITHOUT_X11 ...
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: David E. O'Brien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-10 12:20 UTC by thomas
Modified: 2005-07-28 19:01 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (756 bytes, patch)
2005-06-10 12:20 UTC, thomas
no flags Details | Diff
file.diff (670 bytes, patch)
2005-06-10 12:20 UTC, thomas
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description thomas 2005-06-10 12:20:09 UTC
	WITHOUT_X11 knob does not install all necessary files
        If you start raidutil you will get an: "Engine connect failed: Open"

How-To-Repeat: 	Install raidutil with WHITOUT_X11 and run raidutil -L all
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2005-06-10 16:49:52 UTC
Responsible Changed
From-To: freebsd-ports-bugs->obrien

Over to maintainer
Comment 2 thomas 2005-06-20 18:28:44 UTC
This update installs the man page too. IMHO it's very useful.

--- Makefile.orig       Wed Jun  8 12:40:36 2005
+++ Makefile    Mon Jun 20 19:24:20 2005
@@ -8,6 +8,7 @@
PORTNAME=      asr-utils
PORTVERSION=   3.04
+PORTREVISION=  1
CATEGORIES=    sysutils
MASTER_SITES=  http://download.adaptec.com/raid/u160raid/unix/ \
                 ftp://ftp.adaptec.com/raid/u160raid/unix/
@@ -20,12 +21,14 @@
ONLY_FOR_ARCHS=        i386
NO_WRKSUBDIR=  yes
-BINS=          raidutil
+BINS=          raidutil dpteng dptcom dptsig
.ifndef (WITHOUT_X11)
USE_XLIB=      yes
-BINS+=         dptcom dpteng dptscom dptsig dptmgr
+BINS+=         dptscom dptmgr
.endif
+MAN8=          raidutil.8
+
.if !defined(WITHOUT_X11) && !exists(${X11BASE}/lib/libXm.so.1)
# we shall install our own libXm.so.1, enable it in pkg-plist
PLIST_SUB+=    LIBXM=""
@@ -64,8 +67,13 @@
do-install:
         ${MKDIR} ${PREFIX}/dpt
         cd ${WRKSRC} ; ${INSTALL_PROGRAM} ${BINS} ${PREFIX}/dpt ; \
-               ${INSTALL_DATA} read.me ${PREFIX}/dpt
-       ${LN} -sf ${PREFIX}/dpt/${BINS} ${PREFIX}/bin
+               ${INSTALL_DATA} read.me dptcom.chk ${PREFIX}/dpt
+.for bin in ${BINS}
+       ${LN} -sf ${PREFIX}/dpt/${bin} ${PREFIX}/bin
+.endfor
.endif
+
+post-install:
+       @${INSTALL_MAN} ${WRKSRC}/raidutil.8 ${PREFIX}/man/man8/ 
raidutil.8
.include <bsd.port.post.mk>


--- pkg-plist.orig      Mon Jun 20 19:24:47 2005
+++ pkg-plist   Mon Jun 20 19:24:53 2005
@@ -1,21 +1,22 @@
@comment $FreeBSD: ports/sysutils/asr-utils/pkg-plist,v 1.3  
2005/06/07 09:12:44 erwin Exp $
-%%X11%%bin/dptcom
-%%X11%%bin/dpteng
%%X11%%bin/dptmgr
%%X11%%bin/dptscom
-%%X11%%bin/dptsig
bin/raidutil
-%%X11%%dpt/dptcom
-%%X11%%dpt/dptcom.chk
-%%X11%%dpt/dpteng
+bin/dpteng
+bin/dptcom
+bin/dptsig
%%X11%%dpt/dptmgr
%%X11%%dpt/dptmgr.hlp
%%X11%%dpt/dptmgr.ini
%%X11%%dpt/dptmgr.rsc
%%X11%%dpt/dptscom
-%%X11%%dpt/dptsig
dpt/raidutil
dpt/read.me
+dpt/dpteng
+dpt/dptcom
+dpt/dptcom.chk
+dpt/dptsig
+man/man8/raidutil.8.gz
%%LIBXM%%@cwd %%X11BASE%%
%%LIBXM%%lib/libXm.so.1
@dirrm dpt
Comment 3 Erwin Lansing freebsd_committer freebsd_triage 2005-07-28 19:01:43 UTC
State Changed
From-To: open->closed

Committed, thanks!