~ubuntu-branches/ubuntu/wily/dhcpcd5/wily-proposed

« back to all changes in this revision

Viewing changes to dhcpcd-hooks/Makefile

  • Committer: Package Import Robot
  • Author(s): Daniel Echeverry
  • Date: 2015-06-03 10:43:23 UTC
  • mfrom: (7.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150603104323-74htea00somdput9
Tags: 6.9.0-1
* QA Upload
* New upstream release. Closes: #786772, #758713, #782085, #788693
* debian/control
  + Use Replaces instead Conflicts field
  + Bump Standards-Version 3.9.6
    + Update to DEP5 copyright format 1.0
* debian/rules
  + Add DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE
* debian/patches
  + Add fix_ftbfs_kfreebsd.diff patch
    + Fix ftbfs on kfreebsd Closes: #770464
  + Add fix_manpage.diff patch
    * Fix lintian warning
  + Remove CVE-2014-6060.patch patch
    + Merge with upstream
  + Remove kfreebsd.diff patch
    * Upstream removed platform-bsd.c file in new version
* debian/prerm
  + Replace bashim with set -e
* debian/postint
  + Replace bashim with set -e
* debian/postrm
  + Replace bashim with set -e

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
TOP?=   ../
2
2
include ${TOP}/Makefile.inc
3
 
include ${TOP}/config.mk
 
3
include ${TOP}/iconfig.mk
4
4
 
5
5
SCRIPTSDIR=     ${LIBEXECDIR}/dhcpcd-hooks
6
6
SCRIPTS=        01-test 02-dump
8
8
SCRIPTS+=       29-lookup-hostname 30-hostname
9
9
SCRIPTS+=       ${HOOKSCRIPTS}
10
10
 
11
 
all:
12
 
 
13
 
install:
 
11
50-ypbind: 50-ypbind.in
 
12
        ${SED} \
 
13
                -e 's:@YPDOMAIN_DIR@:${YPDOMAIN_DIR}:g' \
 
14
                -e 's:@YPDOMAIN_SUFFIX@:${YPDOMAIN_SUFFIX}:g' \
 
15
                50-ypbind.in > $@
 
16
 
 
17
all: ${HOOKSCRIPTS}
 
18
 
 
19
clean:
 
20
        rm -f 50-ypbind
 
21
 
 
22
proginstall: ${HOOKSCRIPTS}
14
23
        ${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
15
24
        ${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}
16
25
 
17
 
import:
 
26
install: proginstall
 
27
 
 
28
import: ${HOOKSCRIPTS}
18
29
        ${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks
19
 
        for x in ${SCRIPTS}; do \
20
 
                t="/tmp/${DISTPREFIX}/dhcpcd-hooks/$$x"; \
21
 
                if test "$$(sed -ne 1p $$x)" = "#!/bin/sh"; then \
22
 
                        echo "#!/bin/sh" >"$$t"; \
23
 
                        printf "${IMPORT_SHID}\n" >>"$$t"; \
24
 
                        echo "" >>"$$t"; \
25
 
                        sed 1d "$$x" >>"$$t"; \
26
 
                else \
27
 
                        printf "${IMPORT_SHID}\n" >"$$t"; \
28
 
                        echo "" >>"$$t"; \
29
 
                        cat "$$x" >>"$$t"; \
30
 
                fi; \
31
 
        done;
 
30
        ${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks