Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Commit

Permalink
Add goxc cross-compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Sep 25, 2015
1 parent 80da429 commit d45def1
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ _testmain.go
*.prof
/*.iml
/.idea
/releases
7 changes: 7 additions & 0 deletions .goxc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ArtifactsDest": "releases",
"BuildConstraints": "linux,!386 windows,amd64 freebsd,!386 darwin,amd64",
"PackageVersion": "0.1.0",
"ConfigVersion": "0.9",
"ResourcesInclude": "doproxy.toml,inventory.toml,sample-userdata.sh"
}
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
doproxy () unreleased; urgency=low

* Initial import

-- Klaus Post <klauspost@gmail.com> Fri, 25 Sep 2015 13:43:20 +0200
17 changes: 17 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: doproxy
Section: devel
Priority: extra
Maintainer: Klaus Post <klauspost@gmail.com>
Build-Depends: debhelper (>= 9.1.0), golang-go
Standards-Version: 3.9.4

Package: doproxy
Architecture: any
Description: Reverse Proxy
Long Reverse Proxy

Package: doproxy-dev
Architecture: all
Description: Reverse Proxy - development package
Long Reverse Proxy

3 changes: 3 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Files: *
Copyright: 2015 Klaus Post <klauspost@gmail.com>
License: MIT License
46 changes: 46 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export GOPATH=$(CURDIR)::/usr/share/gocode

PKGDIR=debian/doproxy

%:
dh $@

clean:
dh_clean
rm -rf $(CURDIR)/bin/* $(CURDIR)/pkg/*
rm -f $(CURDIR)/goinstall.log

binary-arch: clean
dh_prep
dh_installdirs
cd $(CURDIR)/src && go install ./...

mkdir -p $(PKGDIR)/usr/bin $(CURDIR)/bin/
mkdir -p $(PKGDIR)/usr/share/gopkg/ $(CURDIR)/pkg/

BINFILES=$(wildcard $(CURDIR)/bin/*)

for x in$(BINFILES); do \
cp $$x $(PKGDIR)/usr/bin/; \
done;

PKGFILES=$(wildcard $(CURDIR)/pkg/*.a)
for x in$(PKGFILES); do \
cp $$x $(PKGDIR)/usr/share/gopkg/; \
done;

dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-arch
2 changes: 1 addition & 1 deletion doproxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ hostname-prefix = "auto-nginx" # Prefix added to new droplets.
region = "nyc3"
size = "1gb"
image = "ubuntu-14-04-x64"
user-data = "sample-startup.sh"
user-data = "sample-userdata.sh"
backups = false


Expand Down
File renamed without changes.

0 comments on commit d45def1

Please sign in to comment.