~crass/proxychains-ng/daily-packaging

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: crass
  • Date: 2013-06-24 03:11:45 UTC
  • Revision ID: crass@crass-ideapad-z570-20130624031145-3zz01lnstkufxib2
Initial packaging commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# These are used for cross-compiling and for saving the configure script
 
4
# from having to guess our platform (since we know it already)
 
5
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
6
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
7
 
 
8
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
9
        INSTALL_PROGRAM += -s
 
10
endif
 
11
 
 
12
include /usr/share/quilt/quilt.make
 
13
 
 
14
%:
 
15
        dh $@
 
16
 
 
17
build: patch
 
18
        dh build
 
19
 
 
20
clean: unpatch
 
21
        dh clean
 
22
 
 
23
override_dh_auto_configure:
 
24
        ./configure \
 
25
                        --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
 
26
                        --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
 
27
                        --sysconfdir=/etc
 
28
 
 
29
override_dh_auto_install:
 
30
        dh_auto_install
 
31
        #make install-config
 
32
        #mv debian/tmp/usr/lib/libproxychains4.so debian/libproxychains4/usr/lib/libproxychains4.so.4
 
33
        #ln -s libproxychains4.so.4 debian/libproxychains4/usr/lib/libproxychains4.so
 
34
        #mv src/proxyresolv debian/libproxychains4/usr/lib/proxychains4/
 
35
 
 
36
.PHONY: build clean