Skip to content

Commit 7e10d1a

Browse files
David Coutadeurdavidcoutadeur
authored andcommitted
build package without root permissions (#211)
1 parent a33cac2 commit 7e10d1a

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

packaging/debian/control

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ Source: ltb-project-white-pages
22
Section: web
33
Priority: extra
44
Maintainer: Clement Oudot <clem@ltb-project.org>
5-
Build-Depends: debhelper (>= 7)
6-
Rules-Requires-Root: binary-targets
5+
Build-Depends:
6+
debhelper (>= 7),
7+
dh-sequence-zz-debputy-rrr
8+
Rules-Requires-Root: no
79
Standards-Version: 3.8.3
810
Homepage: https://ltb-project.org/documentation/white-pages.html
911

packaging/debian/debputy.manifest

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
manifest-version: "0.1"
2+
packages:
3+
white-pages:
4+
transformations:
5+
- path-metadata:
6+
path: /var/cache/white-pages/templates_c
7+
owner: www-data
8+
group: www-data
9+
mode: "0700"
10+
recursive: true
11+
- path-metadata:
12+
path: /var/cache/white-pages/cache
13+
owner: www-data
14+
group: www-data
15+
mode: "0700"
16+
recursive: true

packaging/debian/rules

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ override_dh_install:
1010
dh_install
1111
debian/replace_cache_dirs
1212

13-
override_dh_fixperms:
14-
dh_fixperms
15-
chown www-data:www-data debian/white-pages/var/cache/white-pages/cache
16-
chown www-data:www-data debian/white-pages/var/cache/white-pages/templates_c
17-
1813
override_dh_builddeb:
1914
dh_builddeb -- -Zxz
2015

0 commit comments

Comments
 (0)