DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th March 2011
thefronny thefronny is offline
Port Guard
 
Join Date: Oct 2008
Posts: 17
Thanked 0 Times in 0 Posts
Default How to build kismet without X?

I'd like to run kismet on an OpenBSD-4.8 firewall that has the X package installed but X is not set to run at boot time. "make build" fails because X is not running, but the kismet page says kismet is ncurses based. Shouldn't it be able to build and run without X? How might I break Makefile to get it to build?

thx,

tf
Reply With Quote
  #2   (View Single Post)  
Old 12th March 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by thefronny View Post
How might I break Makefile to get it to build?
  • First, why are you building? Why not simply install the package pointing PKG_PATH to a mirror?
  • Why did you install X on a firewall?
Quote:
"make build" fails because X is not running,
Untrue. Nothing in the ports tree requires X to be running. What is required by a number of ports is for the X libraries to be present. In fact, you can determine kismet's dependencies by the following (assuming the ports tree is installed...):
Code:
$ cd /usr/ports/net/kismet
$ make print-build-depends
This port requires package(s) "metaauto-1.0 libusb-0.1.12p4 gperf-3.0.4
 libiconv-1.13p2 gettext-0.18.1p0 gmake-3.81p1 ghostscript-fonts-8.11p2
 gmp-4.3.1 groff-mdoc-0.0 groff-1.15.4.7p3 jpeg-8b tiff-3.9.4 lcms-1.18a
 jbigkit-1.6p2 unzip-6.0 jasper-1.900.1p1 help2man-1.29p0 autoconf-2.61p3
 libltdl-1.5.26p0 libtool-1.5.26p4 autoconf-2.59p3 tcl-8.5.9 sqlite3-3.7.4 
 tk-8.5.9p0 db-4.6.21p4 automake-1.9.6p5 autoconf-2.62p0 bzip2-1.0.6 
 gdbm-1.8.3p0 python-2.6.6p0 libxml-2.7.8p1 xdg-utils-1.0.2p9 
 dbus-1.4.1p1v0 pcre-8.02p1 p5-XML-Parser-2.40p0 intltool-0.41.1
 libgamin-0.1.10p3 glib2-2.26.1p0 desktop-file-utils-0.18 ijs-0.35
 png-1.2.44 netpbm-10.35.75 cups-1.4.6p2 ghostscript-8.63p16 
 transfig-3.2.5ap0 libwmf-0.2.8.4 ImageMagick-6.4.5.6p0" to build.
$
To determine what packages are run-time dependencies:
Code:
$ cd /usr/ports/net/kismet
$ make print-run-depends
$
Note the exact build dependencies above are for -current.

This points out that there are no other run-time dependencies, however, some of the build dependencies may require the presence of X's libraries.

Again, installing the pre-built package gets around any dependency on X.
Reply With Quote
  #3   (View Single Post)  
Old 12th March 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

It should be noted.. the developers have stated on the lists several times that a lot of ports/packages require the X11 sets for libraries at run-time/compile-time.

They don't really take up much space, so it doesn't hurt to install them.. especially if you plan on installing packages.
Reply With Quote
  #4   (View Single Post)  
Old 12th March 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
It should be noted.. the developers have stated on the lists several times that a lot of ports/packages require the X11 sets for libraries at run-time/compile-time.
Actually, the admonition is much stronger. Section 15.4.1 states that building ports is not supported without X installed.
Quote:
They don't really take up much space, so it doesn't hurt to install them.. especially if you plan on installing packages.
While I don't suspect that you are confusing build requirements with installation, installing kismet through the package circumvents any need for X at all. While the presence of X isn't entirely verboten, numerous project developers have also advocated not installing it if not necessary. Yet, this is simply a preference for minimalism, not a requirement.
Reply With Quote
  #5   (View Single Post)  
Old 12th March 2011
thefronny thefronny is offline
Port Guard
 
Join Date: Oct 2008
Posts: 17
Thanked 0 Times in 0 Posts
Default

Ocicat,

Indeed. After a real look-see rather than my lame memory I did not have X installed, so I set things up for packages and installed kismet that way. Works fine albeit anti-climactic. I originally went for ports out of habit as that's what I use on most of my machines since they are FreeBSD.

Enough of this, I'm going outside...

thx,

tf
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lisp can't build %.el Mr-Biscuit Programming 3 29th January 2011 06:46 PM
kdepim not build ? marduk NetBSD Installation and Upgrading 0 3rd September 2010 06:15 PM
Orinoco and Kismet sniper007 FreeBSD General 2 5th November 2008 11:21 AM
Do you build your own computers? JMJ_coder Off-Topic 28 28th July 2008 03:04 AM


All times are GMT. The time now is 08:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick