WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Suggested Debian install instructions patch for the website
@ 2019-09-07 12:54 Salvatore LaMendola
  0 siblings, 0 replies; only message in thread
From: Salvatore LaMendola @ 2019-09-07 12:54 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 1700 bytes --]

Hello,

On the [install page of the website](https://www.wireguard.com/install/), the default pin config smartly deprioritizes Sid after adding the repository. However, it seems this causes the wireguard packages to be non-upgradable. After speaking with someone on IRC about this, I can't think of a reason why we wouldn't want to be able to upgrade the wireguard packages. So, I'd like to propose the following addition to the pinning configuration written in the instructions (unified diff follows):

==========================

--- orig        2019-09-07 08:43:08.489455140 -0400
+++ new 2019-09-07 08:45:49.056137802 -0400
@@ -1,4 +1,4 @@
# echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list
-# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
+# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n\nPackage: /^wireguard/\nPin: release a=unstable\nPin-Priority: 500\n' > /etc/apt/preferences.d/limit-unstable
# apt update
# apt install wireguard

==========================

This preserves the general priority of 90 for *, but it also sets any package starting with wireguard to 500, which matches the default priority used in the PPAs.

The only reason I chose a regex match here is in case any additional wireguard packages get added later, other than wireguard, wireguard-dkms, and wireguard-tools. Otherwise, the Package line could read:

Package: wireguard wireguard-dkms wireguard-tools

Anyone have any objections to this approach? Also, is there a repo for the website I can fork and PR this to?

Thank you in advance.

--
Salvatore LaMendola


[-- Attachment #1.2: Type: text/html, Size: 4747 bytes --]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Hello,<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
On the [install page of the website](<a href="https://www.wireguard.com/install/">https://www.wireguard.com/install/</a>), the default pin config smartly deprioritizes Sid after adding the repository. However, it seems this causes the wireguard packages to
 be non-upgradable. After speaking with someone on IRC about this, I can't think of a reason why we wouldn't want to be able to upgrade the wireguard packages. So, I'd like to propose the following addition to the pinning configuration written in the instructions
 (unified diff follows):<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
==========================<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
--- orig&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2019-09-07 08:43:08.489455140 -0400<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
&#43;&#43;&#43; new 2019-09-07 08:45:49.056137802 -0400<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
@@ -1,4 +1,4 @@<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
# echo &quot;deb <a href="http://deb.debian.org/debian">http://deb.debian.org/debian</a>/ unstable main&quot; &gt; /etc/apt/sources.list.d/unstable.list<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
-# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' &gt; /etc/apt/preferences.d/limit-unstable<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
&#43;# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n\nPackage: /^wireguard/\nPin: release a=unstable\nPin-Priority: 500\n' &gt; /etc/apt/preferences.d/limit-unstable<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
# apt update<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
# apt install wireguard<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
==========================<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
This preserves the general priority of 90 for *, but it also sets any package starting with wireguard to 500, which matches the default priority used in the PPAs.
<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
The only reason I chose a regex match here is in case any additional wireguard packages get added later, other than wireguard, wireguard-dkms, and wireguard-tools. Otherwise, the Package line could read:<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Package: wireguard wireguard-dkms wireguard-tools<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Anyone have any objections to this approach? Also, is there a repo for the website I can fork and PR this to?<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Thank you in advance.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="OutlookSignature">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
-- <br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Salvatore LaMendola</div>
</span><br>
</div>
</body>
</html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07 12:54 Suggested Debian install instructions patch for the website Salvatore LaMendola

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git