Skip to content

Commit 94bd79e

Browse files
committed
adding debian packaging (except changelog) & Makefile
1 parent bd39093 commit 94bd79e

File tree

11 files changed

+93
-0
lines changed

11 files changed

+93
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
# basic Makefile
5+
OS=linux
6+
ARCH=amd64
7+
8+
export GOOS=$(shell [ "x${OS}" != "x" ] && echo ${OS} || (go env GOOS) )
9+
export GOARCH=$(shell [ "x${ARCH}" != "x" ] && echo ${ARCH} || (go env GOARCH) )
10+
export GO15VENDOREXPERIMENT=1
11+
12+
.PHONY: build
13+
14+
all: update build
15+
16+
update:
17+
18+
build:
19+
@echo building for ${GOOS}/${GOARCH}${GOARM}
20+
go build -o shitenno src/*.go

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Source: shitenno
2+
Section: admin
3+
Priority: extra
4+
Maintainer: Nathanaelle <[email protected]>
5+
Build-Depends: debhelper (>= 9), golang-go (>=1.5), dh-golang
6+
Standards-Version: 3.9.1
7+
Homepage: http://github.com/nathanaelle/shitenno
8+
Vcs-Browser: http://github.com/nathanaelle/shitenno
9+
Vcs-Git: http://github.com/nathanaelle/shitenno
10+
11+
Package: shitenno
12+
Architecture: amd64 armhf
13+
Depends: ${shlibs:Depends}, ${misc:Depends}
14+
Built-Using: ${misc:Built-Using}
15+
Suggests: shitenno-conf
16+
Description: unified proxy for mail plateform
17+
unified proxy for nginx mail / postfix / dovecot
18+
19+
Package: shitenno-default-conf
20+
Architecture: all
21+
Depends: shitenno
22+
Conflicts: shitenno-conf
23+
Provides: shitenno-conf
24+
Description: unified proxy for mail plateform - default conf & docs
25+
unified proxy for nginx mail / postfix / dovecot

debian/rules

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
#export DH_VERBOSE=1
5+
export DH_OPTIONS
6+
export DH_GOPKG=github.com/nathanaelle/shitenno
7+
8+
export GO15VENDOREXPERIMENT=1
9+
export GOOS=$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
10+
export GOARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11+
12+
13+
override_dh_auto_build:
14+
go build -o shitenno src/*.go
15+
16+
# the only way to avoid the copy of the source tree
17+
override_dh_auto_install:
18+
19+
override_dh_auto_test:
20+
21+
%:
22+
dh $@ --buildsystem=golang --with=golang

debian/shitenno-default-conf.docs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ReadMe.markdown
2+
conf/*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
conf/shitenno.conf etc/

debian/shitenno.docs

Whitespace-only changes.

debian/shitenno.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shitenno usr/sbin

debian/shitenno.service

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=shitenno mail unified proxy
3+
After=network.target,syslog.service
4+
5+
[Service]
6+
Type=simple
7+
ExecStart=/usr/sbin/shitenno
8+
StandardOutput=null
9+
10+
[Install]
11+
WantedBy=multi-user.target

debian/shitenno.upstart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
description "shitenno mail unified proxy daemon"
2+
3+
start on runlevel [2345]
4+
stop on runlevel [!2345]
5+
6+
console log
7+
respawn
8+
9+
exec /usr/sbin/shitenno

0 commit comments

Comments
 (0)