Skip to content

Commit

Permalink
Release process changes
Browse files Browse the repository at this point in the history
This commit does not change any installed code.
- The tarball now includes pre-built documentation, removing the build dependency on asciidoc from the PKGBUILD.
- The tarball is now xz compressed.
- News is updated.
  • Loading branch information
joukewitteveen committed Mar 19, 2012
1 parent 94ae8b1 commit 3d6bfb6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gitattributes export-ignore
.gitignore export-ignore
33 changes: 17 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,26 @@ install-docs: docs
docs:
$(MAKE) -C $@

tarball: netcfg-$(VERSION).tar.gz
netcfg-$(VERSION).tar.gz:
-rm -rf netcfg-$(VERSION)
mkdir -p netcfg-$(VERSION)
cp -r docs config rc.d src scripts src-wireless systemd contrib Makefile LICENSE README netcfg-$(VERSION)
sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" netcfg-$(VERSION)/scripts/netcfg
tar -zcvf netcfg-$(VERSION).tar.gz netcfg-$(VERSION)
rm -rf netcfg-$(VERSION)
tarball: netcfg-$(VERSION).tar.xz
netcfg-$(VERSION).tar.xz: | docs
cp scripts/netcfg{,.orig}
sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" scripts/netcfg
git stash save -q
git archive -o netcfg-$(VERSION).tar --prefix=netcfg-$(VERSION)/ stash
git stash pop -q
mv scripts/netcfg{.orig,}
tar --exclude-vcs --transform "s%^%netcfg-$(VERSION)/%" -uf netcfg-$(VERSION).tar docs/
xz netcfg-$(VERSION).tar

pkgbuild: netcfg-$(VERSION).tar.gz
sed -e "s/%pkgver%/$(VERSION)/" -e "s/%md5sum%/$(shell md5sum netcfg-$(VERSION).tar.gz | cut -d ' ' -f 1)/" contrib/PKGBUILD > PKGBUILD
pkgbuild: PKGBUILD
PKGBUILD: netcfg-$(VERSION).tar.xz
sed -e "s/%pkgver%/$(VERSION)/" -e "s/%md5sum%/$(shell md5sum netcfg-$(VERSION).tar.xz | cut -d ' ' -f 1)/" contrib/PKGBUILD > PKGBUILD

upload: netcfg-$(VERSION).tar.gz
md5sum netcfg-$(VERSION).tar.gz > MD5SUMS.$(VERSION)
scp netcfg-$(VERSION).tar.gz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/
upload: netcfg-$(VERSION).tar.xz
md5sum netcfg-$(VERSION).tar.xz > MD5SUMS.$(VERSION)
scp netcfg-$(VERSION).tar.xz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/

clean:
$(MAKE) -C docs clean
-@rm -vrf netcfg-$(VERSION) 2>/dev/null
-@rm -vrf pkg 2>/dev/null
-@rm -vf PKGBUILD *.gz MD5SUMS.* 2>/dev/null
-@rm -vf PKGBUILD *.xz MD5SUMS.* 2>/dev/null

7 changes: 5 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ version 2.7
- add support for PPPoE connections
- add support for profile backgrounding in net-profiles (FS#23934)
- add interactive wifi connection tool wifi-menu
- add netcfg option to reconnect an interface
- assorted fixes
- add netcfg option to reconnect an interface (-R) (FS#28196)
- rename the option to disconnect an interface (was: -i, now: -D)
- stop suggesting profile-scripting through /etc/network.d/hooks as it was
unused and the {PRE,POST}_{UP,DOWN} variables work just fine (FS#27496)
- assorted fixes (FS#24599, FS#26370, FS#26607, FS#28022)

version 2.6.8
- fix broken 802.11 in non-wireless setups (FS#25473)
Expand Down
4 changes: 2 additions & 2 deletions contrib/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ url="http://archlinux.org"
license=("BSD")
backup=(etc/iftab etc/conf.d/netcfg)
depends=("coreutils" "dhcpcd>=4.0" "iproute2")
makedepends=('asciidoc')
#makedepends=('asciidoc') # The source tarball includes pre-built documentation.
optdepends=('dialog: Required for menu based profile and wifi selectors'
'bridge-utils: To set up bridge connections'
'wpa_supplicant: required for wireless network support'
'wpa_actiond: Required for automatic wireless connection with rc.d/net-auto-wireless'
'ifplugd: Required for automatic wired connection with rc.d/net-auto-wired'
'wireless_tools: Required for net-rename'
)
source=(ftp://ftp.archlinux.org/other/netcfg/netcfg-${pkgver}.tar.gz)
source=(ftp://ftp.archlinux.org/other/netcfg/netcfg-${pkgver}.tar.xz)
arch=(any)
md5sums=('%md5sum%')

Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.1
*.5
*.8
*.html

0 comments on commit 3d6bfb6

Please sign in to comment.