Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #21645: reinstate rudder-webapp package #2659

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rudder-webapp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DEFAULT_GOAL := build
# Used on debian to redirect calls to final Makefile so dh auto commands work
%:
make -C SOURCES --debug $@
44 changes: 44 additions & 0 deletions rudder-webapp/SOURCES/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#####################################################################################
# Copyright 2011 Normation SAS
#####################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#####################################################################################

.DEFAULT_GOAL := build
SHELL = /bin/bash

RUDDER_VERSION_TO_PACKAGE =

PROXY_ENV = $(if $(PROXY), http_proxy=$(PROXY))
# Usage: $(GET) <destination_file> <url> <hash>
# Pass an empty string to skip hash check
# grep 'GET=' */SOURCES/Makefile to patch everywhere
GET=get() { $(PROXY_ENV) curl --silent --location --fail --output "$$1.part" "$$2" && { openssl dgst -sha256 "$$1.part" | grep -q "$$3" || { echo "Wrong checksum, aborting"; exit 1; }; } && mv "$$1.part" "$$1"; }; get

# Defauth PATHs
DESTDIR = $(CURDIR)/target

localdepends:

build:

install: build

clean:

# distclean should remove everything except rudder-sources.tar.bz2 since it can be brought by by external means
distclean: clean

.PHONY: clean localdepends distclean
100 changes: 100 additions & 0 deletions rudder-webapp/SPECS/rudder-webapp.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
#####################################################################################
# Copyright 2011- Normation SAS
#####################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#####################################################################################

#=================================================
# Specification file for rudder-webapp
#
# Copyright (C) 2011- Normation
#=================================================

#=================================================
# Variables
#=================================================
%define real_name rudder-webapp
%define real_epoch 1398866025

#=================================================
# Header
#=================================================
Summary: Configuration management and audit tool - transitional package
Name: %{real_name}
Version: %{real_version}
Release: 1%{?dist}
Epoch: %{real_epoch}
License: GPLv3
URL: https://www.rudder.io/

Group: Applications/System

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-webapp-%(%{__id_u} -n)
BuildArch: noarch

AutoReq: 0
AutoProv: 0

%description
Rudder is an open source configuration management and audit solution.

This is a transitional package.
It can be safely removed.

#=================================================
# Building
#=================================================
%build

#=================================================
# Installation
#=================================================
%install

%pre
#=================================================
# Pre Installation
#=================================================

%post
#=================================================
# Post Installation
#=================================================

%postun
#=================================================
# Post Uninstallation
#=================================================


#=================================================
# Cleaning
#=================================================
%clean
rm -rf %{buildroot}

#=================================================
# Files
#=================================================
%files
%defattr(-, root, root, 0755)

#=================================================
# Changelog
#=================================================
%changelog
* Wed Nov 22 2017 - Rudder Team <dev@rudder.io> %{version}
- See https://docs.rudder.io/changelogs/current/index.html for changelogs

1 change: 1 addition & 0 deletions rudder-webapp/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove this package once upgrading from 7.1 is not supported anymore
5 changes: 5 additions & 0 deletions rudder-webapp/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rudder-webapp (2.3.0~alpha~git-0) lenny; urgency=low

* See https://www.rudder-project.org/site/documentation/user-manual/ for changelogs

-- Rudder Team <rudder-dev@rudder-project.org> Wed, 22 Nov 2017 11:47:27 +0000
1 change: 1 addition & 0 deletions rudder-webapp/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
12 changes: 12 additions & 0 deletions rudder-webapp/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: rudder-webapp
Section: oldlibs
Priority: extra
Maintainer: Rudder Team <dev@rudder.io>
Build-Depends: debhelper (>= 9), ca-certificates, curl
Standards-Version: 3.8.0
Homepage: https://www.rudder.io

Package: rudder-webapp
Architecture: all
Depends:
Description: Transitional package, can be safely removed.
15 changes: 15 additions & 0 deletions rudder-webapp/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This package was debianized by:

Jonathan Clarke <jonathan.clarke@normation.com> on Tue, 06 Oct 2009 01:20:26 +0200

Upstream Author(s):

Normation - http://www.normation.com

Copyright:

Copyright (C) 2011 Normation SAS

License:

GPLv3
19 changes: 19 additions & 0 deletions rudder-webapp/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/make -f
# -*- makefile -*-

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

# The root Makefile has all possible target and prevent dh to autodetect them
# We have no test
override_dh_auto_test:

# default zst on ubuntu22 is not supported on our repository
# but xz is supported on all our supported debian based server os
override_dh_builddeb:
dh_builddeb -- -Zxz


# Default rule that guess what to do for missing targets
%:
dh $@