Loading debian/Makefile 0 → 100644 +103 −0 Original line number Diff line number Diff line # Dependencies you'll probably need to install to compile this: make, curl, git, # zip, unzip, patch, java7-jdk | openjdk-7-jdk, maven. # Release specifics. Note that some of these (VERSION, DESTDIR) # are required and passed to create_archive.sh as environment variables. That # script can also pick up some other settings (PREFIX, SYSCONFDIR) to customize # layout of the installation. ifndef VERSION # Note that this is sensitive to this package's version being the first # <version> tag in the pom.xml VERSION=$(shell grep version pom.xml | head -n 1 | awk -F'>|<' '{ print $$3 }') endif export PACKAGE_TITLE=kafka-connect-elasticsearch export FULL_PACKAGE_TITLE=confluent-kafka-connect-elasticsearch export PACKAGE_NAME=$(FULL_PACKAGE_TITLE)-$(VERSION) # Defaults that are likely to vary by platform. These are cleanly separated so # it should be easy to maintain altered values on platform-specific branches # when the values aren't overridden by the script invoking the Makefile DEFAULT_APPLY_PATCHES=no DEFAULT_DESTDIR=$(CURDIR)/BUILD/ DEFAULT_PREFIX=/usr DEFAULT_SYSCONFDIR=/etc/$(PACKAGE_TITLE) DEFAULT_SKIP_TESTS=no # Whether we should apply patches. This only makes sense for alternate packaging # systems that know how to apply patches themselves, e.g. Debian. ifndef APPLY_PATCHES APPLY_PATCHES=$(DEFAULT_APPLY_PATCHES) endif # Whether we should run tests during the build. ifndef SKIP_TESTS SKIP_TESTS=$(DEFAULT_SKIP_TESTS) endif # Install directories ifndef DESTDIR DESTDIR=$(DEFAULT_DESTDIR) endif # For platform-specific packaging you'll want to override this to a normal # PREFIX like /usr or /usr/local. Using the PACKAGE_NAME here makes the default # zip/tgz files use a format like: # kafka-version-scalaversion/ # bin/ # etc/ # share/kafka/ ifndef PREFIX PREFIX=$(DEFAULT_PREFIX) endif ifndef SYSCONFDIR SYSCONFDIR:=$(DEFAULT_SYSCONFDIR) endif SYSCONFDIR:=$(subst PREFIX,$(PREFIX),$(SYSCONFDIR)) export APPLY_PATCHES export VERSION export DESTDIR export PREFIX export SYSCONFDIR export SKIP_TESTS all: install archive: install rm -f $(CURDIR)/$(PACKAGE_NAME).tar.gz && cd $(DESTDIR) && tar -czf $(CURDIR)/$(PACKAGE_NAME).tar.gz $(PREFIX) rm -f $(CURDIR)/$(PACKAGE_NAME).zip && cd $(DESTDIR) && zip -r $(CURDIR)/$(PACKAGE_NAME).zip $(PREFIX) apply-patches: $(wildcard patches/*) ifeq ($(APPLY_PATCHES),yes) git reset --hard HEAD cat patches/series | xargs -iPATCH bash -c 'patch -p1 < patches/PATCH' endif build: apply-patches ifeq ($(SKIP_TESTS),yes) mvn -DskipTests=true install else mvn install endif install: build ./create_archive.sh clean: rm -rf $(DESTDIR) rm -rf $(CURDIR)/$(PACKAGE_NAME)* rm -rf $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)*rpm rm -rf RPM_BUILDING distclean: clean git reset --hard HEAD git status --ignored --porcelain | cut -d ' ' -f 2 | xargs rm -rf test: .PHONY: clean install check: debian/changelog 0 → 100644 +5 −0 Original line number Diff line number Diff line confluent-kafka-connect-elasticsearch (3.1.0~SNAPSHOT-1) unstable; urgency=low * Initial release. -- Confluent Packaging <packages@confluent.io> Fri, 22 Jul 2016 15:53:42 +0000 debian/compat 0 → 100644 +1 −0 Original line number Diff line number Diff line 9 debian/control 0 → 100644 +14 −0 Original line number Diff line number Diff line Source: confluent-kafka-connect-elasticsearch Section: misc Priority: optional Maintainer: Confluent Packaging <packages@confluent.io> Build-Depends: debhelper (>= 9), java7-jdk, javahelper (>= 0.40), make, maven Standards-Version: 3.9.3 Homepage: http://confluent.io Package: confluent-kafka-connect-elasticsearch Architecture: all Depends: confluent-common Description: Kafka Connect connector for copying data between Kafka and Elasticsearch Kafka Connect Elasticsearch is a Kafka Connector for copying data between Kafka and Elasticsearch debian/copyright 0 → 100644 +27 −0 Original line number Diff line number Diff line Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: kafka-connect-elasticsearch Source: https://github.com/confluentinc/kafka-connect-elasticsearch Files: * Copyright: 2016 Confluent, Inc. License: Apache-2 Files: debian/* Copyright: 2016 Confluent, Inc. License: Apache-2 License: Apache-2 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 overning permissions and limitations under the License. . On Debian systems, the Apache 2.0 license can be found in /usr/share/common-licenses/Apache-2.0. Loading
debian/Makefile 0 → 100644 +103 −0 Original line number Diff line number Diff line # Dependencies you'll probably need to install to compile this: make, curl, git, # zip, unzip, patch, java7-jdk | openjdk-7-jdk, maven. # Release specifics. Note that some of these (VERSION, DESTDIR) # are required and passed to create_archive.sh as environment variables. That # script can also pick up some other settings (PREFIX, SYSCONFDIR) to customize # layout of the installation. ifndef VERSION # Note that this is sensitive to this package's version being the first # <version> tag in the pom.xml VERSION=$(shell grep version pom.xml | head -n 1 | awk -F'>|<' '{ print $$3 }') endif export PACKAGE_TITLE=kafka-connect-elasticsearch export FULL_PACKAGE_TITLE=confluent-kafka-connect-elasticsearch export PACKAGE_NAME=$(FULL_PACKAGE_TITLE)-$(VERSION) # Defaults that are likely to vary by platform. These are cleanly separated so # it should be easy to maintain altered values on platform-specific branches # when the values aren't overridden by the script invoking the Makefile DEFAULT_APPLY_PATCHES=no DEFAULT_DESTDIR=$(CURDIR)/BUILD/ DEFAULT_PREFIX=/usr DEFAULT_SYSCONFDIR=/etc/$(PACKAGE_TITLE) DEFAULT_SKIP_TESTS=no # Whether we should apply patches. This only makes sense for alternate packaging # systems that know how to apply patches themselves, e.g. Debian. ifndef APPLY_PATCHES APPLY_PATCHES=$(DEFAULT_APPLY_PATCHES) endif # Whether we should run tests during the build. ifndef SKIP_TESTS SKIP_TESTS=$(DEFAULT_SKIP_TESTS) endif # Install directories ifndef DESTDIR DESTDIR=$(DEFAULT_DESTDIR) endif # For platform-specific packaging you'll want to override this to a normal # PREFIX like /usr or /usr/local. Using the PACKAGE_NAME here makes the default # zip/tgz files use a format like: # kafka-version-scalaversion/ # bin/ # etc/ # share/kafka/ ifndef PREFIX PREFIX=$(DEFAULT_PREFIX) endif ifndef SYSCONFDIR SYSCONFDIR:=$(DEFAULT_SYSCONFDIR) endif SYSCONFDIR:=$(subst PREFIX,$(PREFIX),$(SYSCONFDIR)) export APPLY_PATCHES export VERSION export DESTDIR export PREFIX export SYSCONFDIR export SKIP_TESTS all: install archive: install rm -f $(CURDIR)/$(PACKAGE_NAME).tar.gz && cd $(DESTDIR) && tar -czf $(CURDIR)/$(PACKAGE_NAME).tar.gz $(PREFIX) rm -f $(CURDIR)/$(PACKAGE_NAME).zip && cd $(DESTDIR) && zip -r $(CURDIR)/$(PACKAGE_NAME).zip $(PREFIX) apply-patches: $(wildcard patches/*) ifeq ($(APPLY_PATCHES),yes) git reset --hard HEAD cat patches/series | xargs -iPATCH bash -c 'patch -p1 < patches/PATCH' endif build: apply-patches ifeq ($(SKIP_TESTS),yes) mvn -DskipTests=true install else mvn install endif install: build ./create_archive.sh clean: rm -rf $(DESTDIR) rm -rf $(CURDIR)/$(PACKAGE_NAME)* rm -rf $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)*rpm rm -rf RPM_BUILDING distclean: clean git reset --hard HEAD git status --ignored --porcelain | cut -d ' ' -f 2 | xargs rm -rf test: .PHONY: clean install check:
debian/changelog 0 → 100644 +5 −0 Original line number Diff line number Diff line confluent-kafka-connect-elasticsearch (3.1.0~SNAPSHOT-1) unstable; urgency=low * Initial release. -- Confluent Packaging <packages@confluent.io> Fri, 22 Jul 2016 15:53:42 +0000
debian/control 0 → 100644 +14 −0 Original line number Diff line number Diff line Source: confluent-kafka-connect-elasticsearch Section: misc Priority: optional Maintainer: Confluent Packaging <packages@confluent.io> Build-Depends: debhelper (>= 9), java7-jdk, javahelper (>= 0.40), make, maven Standards-Version: 3.9.3 Homepage: http://confluent.io Package: confluent-kafka-connect-elasticsearch Architecture: all Depends: confluent-common Description: Kafka Connect connector for copying data between Kafka and Elasticsearch Kafka Connect Elasticsearch is a Kafka Connector for copying data between Kafka and Elasticsearch
debian/copyright 0 → 100644 +27 −0 Original line number Diff line number Diff line Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: kafka-connect-elasticsearch Source: https://github.com/confluentinc/kafka-connect-elasticsearch Files: * Copyright: 2016 Confluent, Inc. License: Apache-2 Files: debian/* Copyright: 2016 Confluent, Inc. License: Apache-2 License: Apache-2 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 overning permissions and limitations under the License. . On Debian systems, the Apache 2.0 license can be found in /usr/share/common-licenses/Apache-2.0.