Просмотр исходного кода

Update makefile and add debian files.

Mariano Cano 8 лет назад
Родитель
Сommit
911d8eccb7
7 измененных файлов с 68 добавлено и 6 удалено
  1. 13 6
      Makefile
  2. 5 0
      debian/changelog
  3. 1 0
      debian/compat
  4. 15 0
      debian/control
  5. 22 0
      debian/copyright
  6. 11 0
      debian/rules
  7. 1 0
      debian/source/format

+ 13 - 6
Makefile

@@ -156,15 +156,22 @@ uninstall:
 # Debian
 #########################################
 
-debian:
+changelog:
+	$Q echo "step-certificates ($(VERSION)) unstable; urgency=medium" > debian/changelog
+	$Q echo >> debian/changelog
+	$Q echo "  * See https://github.com/smallstep/certificates/releases" >> debian/changelog
+	$Q echo >> debian/changelog
+	$Q echo " -- Smallstep Labs, Inc. <techadmin@smallstep.com>  $(shell date -uR)" >> debian/changelog
+
+debian: changelog
 	$Q mkdir -p $(RELEASE); \
-	OUTPUT=../step-ca_*.deb; \
+	OUTPUT=../step-certificates_*.deb; \
 	rm $$OUTPUT; \
 	dpkg-buildpackage -b -rfakeroot -us -uc && cp $$OUTPUT $(RELEASE)/
 
 distclean: clean
 
-.PHONY: debian distclean
+.PHONY: changelog debian distclean
 
 #################################################
 # Build statically compiled step binary for various operating systems
@@ -172,7 +179,7 @@ distclean: clean
 
 OUTPUT_ROOT=output/
 BINARY_OUTPUT=$(OUTPUT_ROOT)binary/
-BUNDLE_MAKE=v=$v GOOS_OVERRIDE='GOOS=$(1) GOARCH=$(2)' PREFIX=$(3) make $(3)bin/step
+BUNDLE_MAKE=v=$v GOOS_OVERRIDE='GOOS=$(1) GOARCH=$(2)' PREFIX=$(3) make $(3)bin/step-ca
 RELEASE=./.travis-releases
 
 binary-linux:
@@ -183,7 +190,7 @@ binary-darwin:
 
 define BUNDLE
 	$(q)BUNDLE_DIR=$(BINARY_OUTPUT)$(1)/bundle; \
-	stepName=step_$(2); \
+	stepName=step-certificates_$(2); \
  	mkdir -p $$BUNDLE_DIR $(RELEASE); \
 	TMP=$$(mktemp -d $$BUNDLE_DIR/tmp.XXXX); \
 	trap "rm -rf $$TMP" EXIT INT QUIT TERM; \
@@ -191,7 +198,7 @@ define BUNDLE
 	mkdir -p $$newdir/bin; \
 	cp $(BINARY_OUTPUT)$(1)/bin/step $$newdir/bin/; \
 	cp README.md $$newdir/; \
-	NEW_BUNDLE=$(RELEASE)/step_$(2)_$(1)_$(3).tar.gz; \
+	NEW_BUNDLE=$(RELEASE)/step-certificates_$(2)_$(1)_$(3).tar.gz; \
 	rm -f $$NEW_BUNDLE; \
     tar -zcvf $$NEW_BUNDLE -C $$TMP $$stepName;
 endef

+ 5 - 0
debian/changelog

@@ -0,0 +1,5 @@
+step-certificates (0.0.1) unstable; urgency=medium
+
+  * See https://github.com/smallstep/certificates/releases
+
+ -- Smallstep Labs, Inc. <techadmin@smallstep.com>  Thu, 01 Nov 2018 00:00:00 +0000

+ 1 - 0
debian/compat

@@ -0,0 +1 @@
+10

+ 15 - 0
debian/control

@@ -0,0 +1,15 @@
+Source: step-certificates
+Section: utils
+Priority: optional
+Maintainer: Smallstep Labs, Inc. <techadmin@smallstep.com>
+Build-Depends: debhelper (>= 9), git, bash-completion
+Standards-Version: 4.2.0
+Homepage: https://github.com/smallstep/certificates
+Vcs-Browser: https://github.com/smallstep/certificates.git
+Vcs-Git: https://github.com/smallstep/certificates.git
+
+Package: step-certificates
+Architecture: any
+Depends: ${misc:Depends}
+Description: Smallstep Certificate Authority
+   step-certificates is the Smallstep Certificate Authority.

+ 22 - 0
debian/copyright

@@ -0,0 +1,22 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: step-certificates
+Source: https://github.com/smallstep/certificates
+
+Files: *
+Copyright: 2018 Smallstep Labs, Inc.
+License: Apache 2.0
+
+License: Apache 2.0
+ Copyright (c) 2018 Smallstep Labs, Inc.
+ .
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+     http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.

+ 11 - 0
debian/rules

@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+override_dh_install-arch:
+	dh_install --arch
+
+build:
+	make bootstrap
+	dh build
+
+%:
+	dh $@

+ 1 - 0
debian/source/format

@@ -0,0 +1 @@
+3.0 (quilt)