1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 from conary.build.packagerecipe import AbstractPackageRecipe, _recipeHelper
16 from conary.build.recipe import RECIPE_TYPE_INFO
17
18 from conary.build import policy
19 from conary.build import usergroup
20
44
46 """
47 NAME
48 ====
49 B{C{UserInfoRecipe}} - Build user info pacakges
50
51 SYNOPSIS
52 ========
53
54 C{UserInfoRecipe} is used to create packages that define a system user
55
56 DESCRIPTION
57 ===========
58
59 The C{UserInfoRecipe} class provides an interface to define a system
60 user through the C{r.User} method. The C{r.User} method is also
61 available in the C{PackageRecipe} class.
62
63 EXAMPLE
64 =======
65 A sample class that uses C{UserInfoRecipe} to define a user
66
67 class ExamplePackage(UserInfoRecipe):
68 name = 'info-example'
69 version = '1.0'
70
71 def setup(r):
72 r.User('example', 500)
73 """
74 internalAbstractBaseClass = 1
75
77 """
78 NAME
79 ====
80 B{C{GroupInfoRecipe}} - Build group info pacakges
81
82 SYNOPSIS
83 ========
84
85 C{GroupInfoRecipe} is used to create packages that define a system group
86
87 DESCRIPTION
88 ===========
89
90 The C{GroupInfoRecipe} class provides an interface to define a system
91 group through the C{r.Group} method. The C{r.Group} method is also
92 available in the C{PackageRecipe} class.
93
94 The C{GroupInfoRecipe} class should be used if a system group must exist
95 independently from any system users.
96
97 EXAMPLE
98 =======
99 A sample class that uses C{GroupInfoRecipe} to define a group
100
101 class ExamplePackage(GroupInfoRecipe):
102 name = 'info-example'
103 version = '1.0'
104
105 def setup(r):
106 r.Group('example', 500)
107 """
108 internalAbstractBaseClass = 1
109