Skip site navigation (1)Skip section navigation (2)
Date:      29 Dec 2005 09:25:35 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        "Mike Esquardez" <mikeala3@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Gnokii SMSD and Ports Help
Message-ID:  <44y824q8tc.fsf@be-well.ilk.org>
In-Reply-To: <BAY7-F18A23F20E0DCF7A363C1D79A360@phx.gbl>
References:  <BAY7-F18A23F20E0DCF7A363C1D79A360@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
"Mike Esquardez" <mikeala3@hotmail.com> writes:

> Hello everybody. I am trying to work out how to install SMSD from
> ports and not having much luck. I'm jut learning FreeBSD, so my
> knowledge of ports is not very good. When I make, make install, it
> only installs Gnokii. After looking around I found the file
> /usr/ports/comms/gnokii/files/patch-smsd-Makefile and also README
> under /work/smsd. I am totally lost and confused. Google has proved
> not so good for this issue.
> 
> ==========================================
> COMPILATION
> 
> SMSD is not compiled by default with gnokii 'make' command. You must
> compile it
> manually by typing 'make' in smsd directory. But before SMSD compilation
> you must right configure gnokii (autoconf, configure).
> 
> For example:
> (in gnokii directory)
> gettextize                # only for CVS copies
> autoconf                  # only for CVS copies
> autoheader                # only for CVS copies
> ./configure
> [ If you use latest Red Hat with new (0.11) gettext version ]
> [ run autogen.sh with configure options instead of the      ]
> [ above commands. It will do all needed things.             ]
> cd smsd
> vi Makefile (edit paths in "DB Modules" section)
> make
> make libpq.la OR make libmysql.la OR make libfile.la
> make install
> 
> Note that you can build all of the modules (libpq, libmysql and libfile) but
> you should use just one.
> ==========================================
> 
> I have installed RPM and Debs before, but I've never had to do
> anything other than make, make install.  Can anyone be so kind enough
> to explain what the above instructions mean? And what the
> "/usr/ports/comms/gnokii/files/patch-smsd-Makefile" file is for and
> how to use it?

You don't need to look that deep into it; just check out the
/usr/ports/comms/gnokii/Makefile and you'll see that what you need is
to build with "WITH_SMSD".  So just do the following:

 $ cd /usr/ports/comms/gnokii
 $ make clean && make -DWITH_SMSD install

and you will end up with /usr/local/sbin/smsd

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44y824q8tc.fsf>