Skip to content
Snippets Groups Projects
Commit e196a030 authored by Olek Wojnar's avatar Olek Wojnar
Browse files

Initial packaging

parent c2972435
No related branches found
No related tags found
No related merge requests found
Showing
with 981 additions and 0 deletions
grpc-java (1.20.0+ds-1) unstable; urgency=medium
* Initial release (Closes: #959837)
-- Olek Wojnar <olek@debian.org> Sun, 19 Apr 2020 22:55:16 -0400
Source: grpc-java
Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Uploaders: Olek Wojnar <olek@debian.org>,
Andreas Tille <tille@debian.org>,
Build-Depends: debhelper-compat (= 13),
default-jdk,
gem2deb,
gradle-apt-plugin,
gradle-debian-helper,
gradle-plugin-protobuf,
javahelper,
jdupes,
libc-ares-dev,
libgeronimo-annotation-1.3-spec-java,
libgflags-dev,
libgoogle-perftools-dev,
libgradle-plugins-java,
libgtest-dev,
libguava-java,
libjacoco-java,
libjsr305-java,
libprotobuf-dev,
libprotobuf-java,
libprotoc-dev (>= 3.11.4~),
libssl-dev,
maven-repo-helper,
protobuf-compiler (>= 3.11.4~),
protobuf-compiler-grpc,
python3,
ruby-google-protobuf (>= 3.9.1~),
ruby-googleapis-common-protos-types,
ruby-googleauth (>= 0.5.1~),
ruby-rspec,
ruby-simplecov,
zlib1g-dev,
Standards-Version: 4.5.0
Rules-Requires-Root: no
Vcs-Browser: https://salsa.debian.org/java-team/grpc-java
Vcs-Git: https://salsa.debian.org/java-team/grpc-java.git
Homepage: https://github.com/grpc/grpc-java
Package: libgrpc-java
Architecture: all
Depends: ${misc:Depends}, ${maven:Depends}
Suggests: ${maven:OptionalDepends}
Description: Java gRPC implementation, HTTP/2 based RPC
gRPC-Java works with JDK 7. gRPC-Java clients are supported on Android API
levels 14 and up (Ice Cream Sandwich and later).
Package: protobuf-compiler-grpc-java-plugin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: high performance general RPC framework - protobuf Java plugin
A modern, open source remote procedure call (RPC) framework that can run
anywhere. It enables client and server applications to communicate
transparently, and makes it easier to build connected systems.
.
This package provides the Java plugin needed for compiling gRPC service
definitions with the protobuf compiler.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: grpc-java
Upstream-Contact: grpc-io@googlegroups.com
Source: https://github.com/grpc/grpc-java
Files-Excluded: gradlew* gradle examples/gradlew* examples/gradle
Comment: Exclude Gradle wrapper (not needed)
Files: *
Copyright: 2014-2019 The gRPC Authors
License: Apache-2.0
Files: okhttp/third_party/*
Copyright: 2011-2012 The Android Open Source Project
2012-2014 Square, Inc.
2013 Twitter, Inc.
License: Apache-2.0
Files: xds/third_party/envoy/NOTICE
xds/third_party/envoy/src/*
Copyright: 2016-2018 Envoy Project Authors
License: Apache-2.0
Files: debian/*
Copyright: 2020 Olek Wojnar <olek@debian.org>
License: Apache-2.0
License: Apache-2.0
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
.
https://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.
.
On Debian systems, the complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2020 Olek Wojnar <olek@debian.org>,
.\"
.TH GRPC_JAVA_PLUGIN 1 "June 21 2020"
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
grpc_java_plugin \- Java plugin for gRPC
.SH SYNOPSIS
.B grpc_java_plugin
.SH DESCRIPTION
This manual page documents the
.B grpc_java_plugin
program.
.PP
\fBgrpc_java_plugin\fP is a plugin to allow Java gRPC code.
.SH OPTIONS
None.
.br
xds/third_party/envoy/NOTICE
examples/*
context/build/debian/grpc-context.pom --java-lib --artifact=context/build/libs/*.jar
ru.vyarus gradle-animalsniffer-plugin
net.ltgt.gradle gradle-errorprone-plugin
com.github.ben-manes gradle-versions-plugin
gradle.plugin.com.github.sherter.google-java-format google-java-format-gradle-plugin
me.champeau.gradle jmh-gradle-plugin
gradle.plugin.io.morethan.jmhreport gradle-jmh-report
#com.google.guava guava-testlib
#com.google.truth truth
#junit junit
project.build.sourceEncoding=UTF-8
maven.test.skip=true
maven.compiler.source=1.7
maven.compiler.target=1.7
maven.compiler.verbose=true
org.slf4j.simpleLogger.defaultLogLevel=debug
trimStackTrace=false
s/com.google.protobuf/ws.antonov.gradle.plugins/ s/protobuf-gradle-plugin/gradle-plugin-protobuf/ * s/.*/debian/ * *
Description: Use autotools to build C++ plugin since Gradle is a hot mess
Author: Olek Wojnar <olek@debian.org>
Last-Update: 2020-06-19
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,1 @@
+SUBDIRS = compiler/
--- /dev/null
+++ b/compiler/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = src/java_plugin/cpp/
+dist_doc_DATA = README.md
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,11 @@
+AC_INIT([protobuf-compiler-grpc-java-plugin], [1.20.0], [grpc-io@googlegroups.com])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_PROG_CXX
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_FILES([
+ Makefile
+ compiler/Makefile
+ compiler/src/java_plugin/cpp/Makefile
+])
+AC_OUTPUT
+
--- /dev/null
+++ b/compiler/src/java_plugin/cpp/Makefile.am
@@ -0,0 +1,4 @@
+bin_PROGRAMS = grpc_java_plugin
+include_HEADERS = java_generator.h
+grpc_java_plugin_SOURCES = java_plugin.cpp java_generator.cpp
+grpc_java_plugin_LDADD = -lprotobuf -lprotoc -lpthread
This diff is collapsed.
Description: Use Python 3 instead of Python 2
Author: Olek Wojnar <olek@debian.org>
Last-Update: 2020-06-18
--- a/buildscripts/set_github_status.py
+++ b/buildscripts/set_github_status.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python3
#
# Copyright 2018 The gRPC Authors
#
@@ -16,7 +16,7 @@
import argparse
import json
-import urllib2
+import urllib.request, urllib.error, urllib.parse
def run():
@@ -46,7 +46,7 @@
with open(oauth_file, 'r') as oauth_file_reader:
oauth_token = oauth_file_reader.read().replace('\n', '')
- req = urllib2.Request(
+ req = urllib.request.Request(
url='https://api.github.com/repos/grpc/grpc-java/statuses/%s' % sha1,
data=json.dumps({
'state': state,
@@ -57,7 +57,7 @@
'Authorization': 'token %s' % oauth_token,
'Content-Type': 'application/json',
})
- print urllib2.urlopen(req).read()
+ print(urllib.request.urlopen(req).read())
if __name__ == '__main__':
python3.patch
fix-gradle-build.patch
build-plugin.patch
usr/share/doc/protobuf-compiler-grpc-java-plugin/README.md
usr/bin/*
usr/include/*
# False positive
protobuf-compiler-grpc-java-plugin: hardening-no-fortify-functions
debian/grpc_java_plugin.1
#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export ORG_GRADLE_PROJECT_skipAndroid=true
export ORG_GRADLE_PROJECT_errorProne=false
export DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
export DEB_HOST_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
export DEB_TARGET_GNU_CPU ?= $(shell dpkg-architecture -qDEB_TARGET_GNU_CPU)
export DEB_TARGET_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_TARGET_GNU_SYSTEM)
export ORG_GRADLE_PROJECT_protoc="/usr/bin/protoc"
# Ensure packages build with no Internet access
export http_proxy=127.0.0.1:9
export https_proxy=127.0.0.1:9
%:
dh $@ --buildsystem=gradle --with maven_repo_helper
override_dh_auto_configure:
dh_auto_configure --buildsystem=autoconf
dh_auto_configure
override_dh_auto_build:
dh_auto_build --buildsystem=autoconf
dh_auto_build
override_dh_auto_install:
dh_auto_install --buildsystem=autoconf
dh_auto_install
override_dh_installexamples:
dh_installexamples
rm -f debian/libgrpc-java/usr/share/doc/libgrpc-java/examples/android/helloworld/.gitignore
rm -f debian/libgrpc-java/usr/share/doc/libgrpc-java/examples/android/routeguide/.gitignore
rm -f debian/libgrpc-java/usr/share/doc/libgrpc-java/examples/android/routeguide/app/.gitignore
override_dh_auto_test:
override_dh_link:
dh_link
jdupes -rl debian/libgrpc-java/usr
3.0 (quilt)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment