4 MAINTAINER
="Frank Denis <dnscrypt@pureftpd.org>"
6 URL
="http://dnscrypt.org"
8 DESCRIPTION
="A tool for securing communications between a client and a DNS resolver
9 The DNSCrypt protocol is very similar to DNSCurve, but focuses on
10 securing communications between a client and its first-level resolver.
11 While not providing end-to-end security, it protects the local network
12 (which is often the weakest link in the chain) against
13 man-in-the-middle attacks. It also provides some confidentiality to
16 The DNSCrypt daemon acts as a DNS proxy between a regular client, like
17 a DNS cache or an operating system stub resolver, and a DNSCrypt-aware
18 resolver, like OpenDNS."
19 TMPDIR
=${TMPDIR:-/tmp}
20 BASE_DIR
=$
(mktemp
-d "$TMPDIR"/dnscrypt.XXXXXX
)
21 INSTALL_DIR
="${BASE_DIR}/usr"
22 PKG_NAME
="dnscrypt-proxy"
23 COPYRIGHT_FILE
="COPYING"
24 DEBIAN_COPYRIGHT_FILE
="${INSTALL_DIR}/share/doc/${PKG_NAME}/copyright"
25 DEBIAN_CHANGELOG_FILE
="${INSTALL_DIR}/share/doc/${PKG_NAME}/changelog.gz"
32 .
/configure
--prefix="$INSTALL_DIR" \
33 --enable-plugins --enable-plugins-root && \
36 mkdir
-p -- $
(dirname "$DEBIAN_COPYRIGHT_FILE") ||
exit 1
37 cp -- "$COPYRIGHT_FILE" "$DEBIAN_COPYRIGHT_FILE" ||
exit 1
39 echo "${PKG_NAME} (${VERSION}) unstable; urgency=medium
42 -- ${MAINTAINER} $(date -R)" |
gzip -9 > "$DEBIAN_CHANGELOG_FILE"
44 find "${INSTALL_DIR}/share/man" -type f
-name "*.[0-9]" -exec gzip -9 {} \
;
46 find "$BASE_DIR" -type d
-exec chmod 755 {} \
;
48 sudo chown
-R 0:0 "$BASE_DIR" ||
exit 1
51 fpm
-s dir
-t "$t" -n "$PKG_NAME" -v "$VERSION" -C "$BASE_DIR" \
52 -m "$MAINTAINER" --category "$CATEGORY" --url "$URL" --license "$LICENSE" \
53 --vendor "$VENDOR" --description "$DESCRIPTION" \