~ubuntu-branches/ubuntu/quantal/wpa/quantal-201207091727

« back to all changes in this revision

Viewing changes to debian/get-orig-source

  • Committer: Package Import Robot
  • Author(s): Kel Modderman, Stefan Lippers-Hollmann, Kel Modderman
  • Date: 2012-04-21 15:59:32 UTC
  • Revision ID: package-import@ubuntu.com-20120421155932-dti0mkayrinzxmpl
Tags: 1.0~rc3-1
[ Stefan Lippers-Hollmann ]
* import new upstream snapshot 1.0-rc3:
  - fixes:
    - hostapd: Fails to authenticate on wpa2 password (Closes: #483924)
    - hostapd: EAPOL reauthentication/rekeying timeout loop when using WMM
      (Closes: #655129, #659059)
  - rebase patches:
    - libnl3-includes
  - update hostapd configs.
  - update wpa_supplicant configs.
* merge source packages for hostapd and wpasupplicant under the new name
  "wpa", which is also used by upstream.
* restrict wpasupplicant to linux-any and kfreebsd-any, hurd lacks kernel
  support.
* bump standards version to 3.9.3, no changes necessary.
* update dep-5 version to final 1.0, no changes necessary:
  - order licenses alphabetically.
* build-depend on docbook-to-man explicitly.
* convert packaging to Multi-Arch, bump compat level to 9 and debhelper
  build-dependency accordingly; all binaries are Multi-Arch=foreign.
* update debian/copyright for wpa 1.0~rc2 and merged sources.
* fix clean target and make sure to succeed building twice in a row.
* drop build-dependency on libreadline-dev, it's no longer needed with
  WPA_CLI_EDIT.
* remove watch file, there is no corresponding upstream tarballs at the
  moment.
* add (temporary?) get-orig-source target to debian/rules, which fetches the
  last tagged upstream version corresponding to debian/changelog.
  - add a lintian override for this, upstream doesn't want to release
    tarballs at the moment.
* use epoche only for hostapd binaries.

[ Kel Modderman ]
* export BINDIR=/sbin, the build system now requires it when patching
  D-Bus/systemd configuration.
* quieten the upstream build system so that errors/warning are more visible.
* assist with adaptation of debian/rules for merge of wpa_supplicant/hostapd:
  - add docbook-utils to build dependency list and make documentation from
    sgml source
  - ensure shared code under src/ is cleaned between wpa_supplicant/hostapd
    builds
  - put wpa_supplicant/hostapd ifupdown hooks in their own namespace, adapt
    installation of ifupdown hooks
* drop the netdev_wrapper script from wpagui and associated patch
* install systemd service unit file
* refresh D-Bus service activation file patch which starts process with
  syslog and control socket support, also patch systemd service file
* drop 09_dbus_emit_change_events.patch, applied upstream.
* fix ftbfs with gcc/g++ 4.7 (Closes: 667416)
* unfortunately, hostapd package historically added an epoch, so an epoch
  must now be added to this source package too.
* enable hardened build flags. (Closes: #657332)
* remove DEB_BUILD_OPTIONS=noopt handling from debian/rules, no longer
  required since dpkg-buildflags honors it.
* Add ability to set CC for cross building support (untested).
* Remove Faidon Liambotis <paravoid@debian.org> from Uploaders as per
  his request, many thanks for all past efforts Faidon.
* Only build manpages from docbook source, we do not currently use the
  html or pdf products.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if [ -n "${1}" ]; then
 
4
        CURDIR="${1}"
 
5
else
 
6
        echo "ERROR: not called with \$(CURDIR) parameter" >&2
 
7
        exit 1
 
8
fi
 
9
 
 
10
# parse versions
 
11
VERSION="$(dpkg-parsechangelog -l${CURDIR}/debian/changelog | sed -ne 's,^Version: *\([0-9]*:\)\?\(.*\)$,\2,p')"
 
12
DEB_VER="$(echo ${VERSION} | sed 's,\-[0-9a-z\~\.]*,,')"
 
13
UP_VER="$(echo ${DEB_VER} | sed 's,\~,\-,g')"
 
14
UP_VER_TAG="hostap_$(echo $UP_VER | sed -e 's,\.,_,g' -e 's,\-,_,g')"
 
15
 
 
16
# write to ../tarballs/, if it exists - ../ otherwise
 
17
if [ -d "${CURDIR}/../tarballs" ]; then
 
18
        ORIG_TARBALL="${CURDIR}/../tarballs/wpa_${DEB_VER}.orig.tar.gz"
 
19
else
 
20
        ORIG_TARBALL="${CURDIR}/../wpa_${DEB_VER}.orig.tar.gz"
 
21
fi
 
22
 
 
23
# don't overwrite existing tarballs
 
24
if [ -e "${ORIG_TARBALL}" ]; then
 
25
        echo "ERROR: don't overwrite existing ${ORIG_TARBALL}" >&2
 
26
        exit 2
 
27
fi
 
28
 
 
29
TEMP_SOURCE="$(mktemp -d --tmpdir wpa-orig-source.XXXXXXXXXX)"
 
30
if [ "$?" -ne 0 ] || [ -z "${TEMP_SOURCE}" ] || [ ! -d "${TEMP_SOURCE}" ]; then
 
31
        echo "ERROR: failed to create temporary working directory" >&2
 
32
        exit 3
 
33
fi
 
34
 
 
35
# clone upstream git repository
 
36
git clone git://w1.fi/srv/git/hostap-1.git "${TEMP_SOURCE}"
 
37
if [ "$?" -ne 0 ] || [ ! -d "${TEMP_SOURCE}" ]; then
 
38
        echo "ERROR: cloning git://w1.fi/srv/git/hostap-1.git failed" >&2
 
39
        rm -rf "${TEMP_SOURCE}"
 
40
        exit 4
 
41
fi
 
42
 
 
43
# create new usptream tarball
 
44
cd "${TEMP_SOURCE}" && \
 
45
        git archive \
 
46
                --format=tar \
 
47
                --prefix="wpa-${UP_VER}/" \
 
48
                "${UP_VER_TAG}" \
 
49
                        README COPYING patches src wpa_supplicant hostapd | \
 
50
                                gzip -c9 > "${ORIG_TARBALL}"
 
51
if [ "$?" -ne 0 ] || [ ! -e "${ORIG_TARBALL}" ]; then
 
52
        echo "ERROR: failure to create ${ORIG_TARBALL}" >&2
 
53
        rm -rf "${TEMP_SOURCE}"
 
54
        exit 5
 
55
else
 
56
        echo "SUCCESS: New upstream tarball has been saved at ${ORIG_TARBALL}"
 
57
        rm -rf "${TEMP_SOURCE}"
 
58
        exit 0
 
59
fi
 
60