Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0458f59a2f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 36 lines (29 sloc) 1.136 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#!/usr/bin/make -f
# Sample debian/rules that uses cdbs. Originaly written by Robert Millan.
# This file is public domain.

DEB_TAR_SRCDIR := bsd-airtools
DEB_AUTO_CLEANUP_RCS := yes

package = bsd-airtools

SHELL := bash
PATH := /usr/lib/freebsd:$(PATH)
PMAKE = make COPTS="-D_GNU_SOURCE" NO_WERROR=1 NOGCCERROR=1 NOSHARED=NO NO_SHARED=NO

dirs = dweputils/{dwepcrack,dwepdump,dwepkeygen} prism2ctl prism2dump
# FIXME: add wnet/{libwnet{,/examples},dinject,reinj}

build/bsd-airtools:: apply-patches
set -e ; for i in $(dirs) \
; do \
$(PMAKE) -C $(DEB_SRCDIR)/$$i ; \
done
cd $(DEB_SRCDIR)/dstumbler && ./configure && $(PMAKE)

include /usr/share/cdbs/1/rules/tarball.mk
pre-build:: $(_cdbs_tarball_stamps)
find $(DEB_SRCDIR) -type f | (set -e ; while read i ; do sed -i $$i \
-e "/^__FBSDID/d" \
-e "/[ \t]*__\(dead2\|unused\|result\)[ \t]*/d" \
-e "s,<sys/queue\.h>,<bsd/queue.h>,g" \
-e "s/^LDADD=/LDADD+=/g" \
-e "s/getline/bsd_&/g" \
; done)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
Something went wrong with that request. Please try again.