summaryrefslogtreecommitdiff
path: root/net/exabgp/patches/patch-setup.py
blob: 29c82056cb4b03a781ff40ecd1228f7b102f6f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-setup.py,v 1.4 2015/03/19 09:20:30 he Exp $

Do away with the special handling for NetBSD, to avoid PLIST issues
between different pkgsrc-using platforms.
Install helper scripts outside of the config tree (use share/exabgp).
On the other hand, only do the systemd dance on Linux.

--- setup.py.orig	2015-03-14 15:32:13.000000000 +0000
+++ setup.py
@@ -364,14 +364,10 @@ def configuration (etc):
 
 os_name = platform.system()
 
-if os_name == 'NetBSD':
-	files_definition= [
-		('share/exabgp',configuration('etc/exabgp')),
-	]
-else:
-	files_definition = [
-		('etc/exabgp',configuration('etc/exabgp')),
-	]
+files_definition= [
+	('share/exabgp',configuration('etc/exabgp')),
+]
+if os_name == 'Linux':
 	if sys.argv[-1] == 'systemd':
 		files_definition.append(('/usr/lib/systemd/system',configuration('etc/systemd')))