Version 1.0
This commit is contained in:
parent
14475af980
commit
c650a1b3ad
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
# created files by 'make package'
|
||||
debian/files
|
||||
debian/pve-no-subscription.debhelper.log
|
||||
debian/pve-no-subscription.substvars
|
||||
debian/pve-no-subscription/
|
||||
|
30
Makefile
Normal file
30
Makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
PACKAGE=pve-no-subscription
|
||||
|
||||
all:
|
||||
@echo "nothing to compile"
|
||||
|
||||
install:
|
||||
@mkdir -p $(DESTDIR)/etc/apt/apt.conf.d
|
||||
@mkdir -p $(DESTDIR)/etc/apt/sources.list.d
|
||||
@mkdir -p $(DESTDIR)/usr/share/pve-no-subscription
|
||||
@install -m 644 apt-hook $(DESTDIR)/etc/apt/apt.conf.d/99-pve-no-subscription
|
||||
@install -m 755 no-subscription-warning.sh $(DESTDIR)/usr/share/pve-no-subscription
|
||||
@install -m 644 no-subscription-warning.patch $(DESTDIR)/usr/share/pve-no-subscription
|
||||
@install -m 644 pve-no-subscription.list $(DESTDIR)/etc/apt/sources.list.d
|
||||
|
||||
package-clean:
|
||||
@rm -f ../$(PACKAGE)_* debian/files debian/$(PACKAGE).substvars debian/$(PACKAGE).debhelper.log
|
||||
@rm -rf debian/$(PACKAGE)
|
||||
|
||||
clean: package-clean
|
||||
|
||||
# suggested way described in
|
||||
# https://wiki.debian.org/buildd
|
||||
package: package-clean
|
||||
@echo "-------------------------------[ dpkg-buildpackage ] -------------------------"
|
||||
@env -i PATH=/usr/bin:/bin SHELL=/bin/sh dpkg-buildpackage -I.git -i'\.git/' < /dev/null
|
||||
@echo "-----------------------------------[ lintian ] -------------------------------"
|
||||
@lintian
|
||||
@echo "-----------------------------------[ package ] -------------------------------"
|
||||
@ls -1 ../$(PACKAGE)*deb
|
||||
|
1
apt-hook
Normal file
1
apt-hook
Normal file
|
@ -0,0 +1 @@
|
|||
DPkg::Post-Invoke {"/usr/share/pve-no-subscription/no-subscription-warning.sh";};
|
7
debian/changelog
vendored
Normal file
7
debian/changelog
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
pve-no-subscription (1.0) UNRELEASED; urgency=low
|
||||
|
||||
* Initial Version
|
||||
|
||||
-- Andreas Steinel <A.Steinel@gmail.com> Thu, 14 Apr 2016 10:07:49 +0200
|
||||
|
||||
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
7
|
16
debian/control
vendored
Normal file
16
debian/control
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
Source: pve-no-subscription
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Build-Depends: debhelper (>= 7)
|
||||
Build-Depends-Indep: make (>= 3.81)
|
||||
Maintainer: Andreas Steinel <A.Steinel@gmail.com>
|
||||
Standards-Version: 3.9.6
|
||||
Vcs-Git: https://github.com/lnxbil/pve-no-subscription.git
|
||||
Vcs-Browser: https://github.com/lnxbil/pve-no-subscription
|
||||
|
||||
Package: pve-no-subscription
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, patch, pve-manager (>= 4.0)
|
||||
Description: PVE non-subscription repository and tweaks
|
||||
Debian APT repository for pve-no-subscription and subscription
|
||||
notification remover as simple debian package.
|
1
debian/copyright
vendored
Normal file
1
debian/copyright
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Copyright 2016 Andreas Steinel <A.Steinel@gmail.com>
|
18
debian/postinst
vendored
Normal file
18
debian/postinst
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
postinst|configure)
|
||||
/usr/share/pve-no-subscription/no-subscription-warning.sh
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
4
debian/rules
vendored
Executable file
4
debian/rules
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
11
no-subscription-warning.patch
Normal file
11
no-subscription-warning.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- /usr/share/pve-manager/ext4/pvemanagerlib.js.orig 2015-04-28 06:38:55.000000000 +0200
|
||||
+++ /usr/share/pve-manager/ext4/pvemanagerlib.js 2015-06-19 17:50:05.856801125 +0200
|
||||
@@ -485,7 +485,7 @@
|
||||
success: function(response, opts) {
|
||||
var data = response.result.data;
|
||||
|
||||
- if (data.status !== 'Active') {
|
||||
+ if (false) {
|
||||
Ext.Msg.show({
|
||||
title: gettext('No valid subscription'),
|
||||
icon: Ext.Msg.WARNING,
|
8
no-subscription-warning.sh
Executable file
8
no-subscription-warning.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $( grep -c "if (data.status !== 'Active') {" /usr/share/pve-manager/ext4/pvemanagerlib.js ) -gt 0 ]
|
||||
then
|
||||
echo "---------------[ Patching with No-Subscription-Removal-Patch ]----------------"
|
||||
cd / && patch --no-backup-if-mismatch -l -p0 < /usr/share/pve-no-subscription/no-subscription-warning.patch
|
||||
echo "------------------------------------------------------------------------------"
|
||||
fi
|
2
pve-no-subscription.list
Normal file
2
pve-no-subscription.list
Normal file
|
@ -0,0 +1,2 @@
|
|||
deb http://download.proxmox.com/debian jessie pve-no-subscription
|
||||
|
Loading…
Reference in a new issue