Porting question
Rajkumar S
rajkumars at gmail.com
Mon Feb 20 03:38:55 PST 2006
Hi,
I am trying to create a package for havp. I have a working patch for
havp, and created a Makefile and so on. When I execute make:
root at beastie:~/package/havp# make clean
===> Cleaning for havp-0.77_1
root at beastie:~/package/havp# make
===> Vulnerability check disabled, database not found
===> Extracting for havp-0.77_1
=> No checksum file (/root/package/havp/distinfo).
===> Patching for havp-0.77_1
===> Applying FreeBSD patches for havp-0.77_1
===> Configuring for havp-0.77_1
checking for C++ compiler default output file name... a.out
<snip>
===> Building for havp-0.77_1
cd havp && make
c++ -O2 -fno-strict-aliasing -pipe -c filehandler.cpp
c++ -O2 -fno-strict-aliasing -pipe -c helper.cpp
But here not all arguments of c++ is present.
root at beastie:~/package/havp# cd work/havp-0.77/
root at beastie:~/package/havp/work/havp-0.77# make
cd havp && make
c++ -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2
-fno-strict-aliasing -pipe -c connectiontobrowser.cpp
c++ -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2 -fno-stri
As you can see -I/usr/local/include is missing when building package
but it's present when I make manually. Can some one point me to the
right direction here? The make files are attached below.
raj
root at beastie:~/package/havp/work/havp-0.77# cat Makefile
all: havp
cd havp && $(MAKE)
clean:
cd havp && $(MAKE) clean
.PHONY: havp/havp
install: havp/havp
cd havp && $(MAKE) install
and
root at beastie:~/package/havp/work/havp-0.77# cat havp/Makefile
CFLAGS = -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2
-fno-strict-aliasing -pipe
prefix=/usr/local
exec_prefix=${prefix}
sbindir=${exec_prefix}/sbin
etcdir=${prefix}/etc
lan_fils :=$(wildcard ../etc/havp/templates/[a-z]*/*.html)
OBJECTS = filehandler.o helper.o logfile.o scannerfilehandler.o
connectiontobrowser.o \
genericscanner.o httphandler.o params.o sockethandler.o
connectiontoserver.o havp.o \
proxyhandler.o whitelist.o clamlibscanner.o
all: havp
havp: $(OBJECTS)
$(CXX) -DHAVE_CONFIG_H -I. -I. -I.. $(CFLAGS) -o havp
$(OBJECTS) -L/usr/local/lib -lz -lbz2 -lgmp -pthread -lclamav
install: all
install -d $(sbindir)
install -m 755 havp $(sbindir)/havp
install -d /var/log/havp/
install -d /var/tmp/havp/
install -d /var/run/havp/
chmod a+rw /var/run/havp/
install -d /etc/init.d/
install -m 755 ../etc/init.d/havp /etc/init.d/
install -m 644 -D ../etc/havp/havp.config $(etcdir)/havp/havp.config
install -m 644 -D ../etc/havp/whitelist $(etcdir)/havp/whitelist
install -m 644 -D ../etc/havp/blacklist $(etcdir)/havp/blacklist
@list='${lan_fils}'; for fil in $$list;do \
install -m 755 -D $$fil $(etcdir)/$${fil#../etc*}; \
done
%.o: %.cpp %.h
$(CXX) -DHAVE_CONFIG_H -I. -I. -I.. $(CFLAGS) -c $< -o $@
clean:
-rm -f havp $(OBJECTS)
More information about the freebsd-ports
mailing list