Initial changelog and rules file
This commit is contained in:
parent
3bab3348fd
commit
bef3496e68
8
debian/changelog
vendored
Normal file
8
debian/changelog
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
freerdp2 (2.0.0~git20160115.1.e2dbe5e+dfsg1-1) unstable; urgency=medium
|
||||
|
||||
* Initial release
|
||||
* Import git snapshot from upstream:
|
||||
- Obtained from master branch of http://github.com/FreeRDP/FreeRDP.
|
||||
Using commit hash: e2dbe5ee2db83b62a83ddf3c7cc45b5ed53f40b1
|
||||
|
||||
-- Bernhard Miklautz <bernhard.miklautz@shacknet.at> Fri, 15 Jan 2016 17:40:33 +0100
|
||||
40
debian/rules
vendored
Executable file
40
debian/rules
vendored
Executable file
@ -0,0 +1,40 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
|
||||
PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
|
||||
UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
|
||||
DTYPE = +dfsg1
|
||||
VER ?= $(subst $(DTYPE),,$(UVER))
|
||||
|
||||
UURL = git://github.com/FreeRDP/FreeRDP.git
|
||||
UREV = $(shell echo $(VER) | cut -d"." -f5)
|
||||
|
||||
## http://wiki.debian.org/onlyjob/get-orig-source
|
||||
.PHONY: get-orig-source
|
||||
get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
|
||||
@
|
||||
|
||||
$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: GIT Revision=$(UREV))
|
||||
$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
|
||||
@echo "# Downloading..."
|
||||
git clone $(UURL) $(PKG)-$(VER) \
|
||||
|| $(RM) -r $(PKG)-$(VER)
|
||||
cd $(PKG)-$(VER) \
|
||||
&& git checkout "$(UREV)" \
|
||||
&& ( echo "# Generating ChangeLog..." \
|
||||
; git --no-pager log --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n" > ChangeLog \
|
||||
; touch -d "$$(git log -1 --format='%ci')" ChangeLog) \
|
||||
&& echo "# Setting times..." \
|
||||
&& for F in $$(git ls-tree -r --name-only HEAD); do touch --no-dereference -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; done \
|
||||
&& echo "# Cleaning-up..." \
|
||||
&& rm -rf \
|
||||
client/Android/ \
|
||||
client/iOS/ \
|
||||
client/Mac/ \
|
||||
client/Windows/ \
|
||||
scripts/OpenSSL-DownloadAndBuild.command \
|
||||
&& $(RM) -r .git .git*
|
||||
@echo "# Packing..."
|
||||
find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
|
||||
| XZ_OPT="-6v" tar -caf "../$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
|
||||
&& $(RM) -r "$(PKG)-$(VER)"
|
||||
Loading…
Reference in New Issue
Block a user