1Alien::Package::Deb(3)User Contributed Perl DocumentationAlien::Package::Deb(3)
2
3
4

NAME

6       Alien::Package::Deb - an object that represents a deb package
7

DESCRIPTION

9       This is an object class that represents a deb package. It is derived
10       from Alien::Package.
11

FIELDS

13       have_dpkg_deb
14           Set to a true value if dpkg-deb is available.
15
16       deb_member_list
17           Set to the list of member names in the deb package.
18
19       dirtrans
20           After the build stage, set to a hash reference of the directories
21           we moved files from and to, so these moves can be reverted in the
22           cleantree stage.
23
24       fixperms
25           If this is set to true, the generated debian/rules will run
26           dh_fixperms.
27

METHODS

29       init
30           Sets have_dpkg_deb if dpkg-deb is in the path. I prefer to use
31           dpkg-deb, if it is available since it is a lot more future-proof.
32
33       checkfile
34           Detect deb files by their extension.
35
36       install
37           Install a deb with dpkg. Pass in the filename of the deb to
38           install.
39
40       test
41           Test a deb with lintian. Pass in the filename of the deb to test.
42
43       get_deb_member_list
44           Helper method. Pass it the name of the deb and it will return the
45           list of ar members.
46
47       getcontrolfile
48           Helper method. Pass it the name of a control file, and it will pull
49           it out of the deb and return it.
50
51       get_datamember_cmd
52           Helper method. Pass it the name of the deb and it will return the
53           raw command needed to extract the data.tar member.
54
55       scan
56           Implement the scan method to read a deb file.
57
58       unpack
59           Implement the unpack method to unpack a deb file.
60
61       getpatch
62           This method tries to find a patch file to use in the prep stage. If
63           it finds one, it returns it. Pass in a list of directories to
64           search for patches in.
65
66       prep
67           Adds a populated debian directory the unpacked package tree, making
68           it ready for building. This can either be done automatically, or
69           via a patch file.
70
71       build
72           Build a deb.
73
74       cleantree
75           Delete the entire debian/ directory.
76
77       package
78           Set/get package name.
79
80           Always returns the package name in lowercase with all invalid
81           characters rmoved. The name is however, stored unchanged.
82
83       version
84           Set/get package version.
85
86           When the version is set, it will be stripped of any epoch. If there
87           is a release, the release will be stripped away and used to set the
88           release field as a side effect. Otherwise, the release will be set
89           to 1.
90
91           More sanitization of the version is done when the field is
92           retrieved, to make sure it is a valid debian version field.
93
94       release
95           Set/get package release.
96
97           Always returns a sanitized release version. The release is however,
98           stored unchanged.
99
100       description
101           Set/get description
102
103           Although the description is stored internally unchanged, this will
104           always return a sanitized form of it that is compliant with Debian
105           standards.
106
107       date
108           Returns the date, in rfc822 format.
109
110       email
111           Returns an email address for the current user.
112
113       username
114           Returns the user name of the real uid.
115
116       savescript
117           Saves script to debian directory.
118
119       gen_postinst
120           Modifies or creates a postinst. This may include generated shell
121           code to set owners and groups from the owninfo field, and update
122           modes from the modeinfo field.
123

AUTHOR

125       Joey Hess <joey@kitenet.net>
126
127
128
129perl v5.30.1                      2020-01-28            Alien::Package::Deb(3)
Impressum