Codebase list libhostfile-manager-perl / eaa6112
New upstream snapshot. Debian Janitor 2 years ago
8 changed file(s) with 348 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 # Changelog
1 All notable changes to this project will be documented in this file.
2
3 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
5 ## [Unreleased]
6
7 ## [0.09] - 2018-11-17
8 ### Changed
9 - Ensure that fragment lists are sorted to simplify finding the fragment you're looking for in interactive mode.
10
11 ## [0.08] - 2011-05-07
12 ### Fixed
13 - Fix a bug where the fragment status flag would not be determine correctly on some FreeBSD systems.
14
15 ## [0.07] - 2011-04-30
16 ### Added
17 - Added homepage link to Makefile.PL
18
19 ### Fixed
20 - Fix tests that failed when run as root.
21
22 ## [0.06] - 2011-04-30
23 ### Changed
24 - Changes to Makefile.PL to better support multiple Perl and EUMM versions.
25
26 ## [0.05] - 2011-04-29
27 ### Added
28 - Initial public release.
0 # Contributor Covenant Code of Conduct
1
2 ## Our Pledge
3
4 In the interest of fostering an open and welcoming environment, we as
5 contributors and maintainers pledge to making participation in our project and
6 our community a harassment-free experience for everyone, regardless of age, body
7 size, disability, ethnicity, sex characteristics, gender identity and expression,
8 level of experience, education, socio-economic status, nationality, personal
9 appearance, race, religion, or sexual identity and orientation.
10
11 ## Our Standards
12
13 Examples of behavior that contributes to creating a positive environment
14 include:
15
16 * Using welcoming and inclusive language
17 * Being respectful of differing viewpoints and experiences
18 * Gracefully accepting constructive criticism
19 * Focusing on what is best for the community
20 * Showing empathy towards other community members
21
22 Examples of unacceptable behavior by participants include:
23
24 * The use of sexualized language or imagery and unwelcome sexual attention or
25 advances
26 * Trolling, insulting/derogatory comments, and personal or political attacks
27 * Public or private harassment
28 * Publishing others' private information, such as a physical or electronic
29 address, without explicit permission
30 * Other conduct which could reasonably be considered inappropriate in a
31 professional setting
32
33 ## Our Responsibilities
34
35 Project maintainers are responsible for clarifying the standards of acceptable
36 behavior and are expected to take appropriate and fair corrective action in
37 response to any instances of unacceptable behavior.
38
39 Project maintainers have the right and responsibility to remove, edit, or
40 reject comments, commits, code, wiki edits, issues, and other contributions
41 that are not aligned to this Code of Conduct, or to ban temporarily or
42 permanently any contributor for other behaviors that they deem inappropriate,
43 threatening, offensive, or harmful.
44
45 ## Scope
46
47 This Code of Conduct applies both within project spaces and in public spaces
48 when an individual is representing the project or its community. Examples of
49 representing a project or community include using an official project e-mail
50 address, posting via an official social media account, or acting as an appointed
51 representative at an online or offline event. Representation of a project may be
52 further defined and clarified by project maintainers.
53
54 ## Enforcement
55
56 Instances of abusive, harassing, or otherwise unacceptable behavior may be
57 reported by contacting the project team at *mirabeaj AT gmail DOT com*. All
58 complaints will be reviewed and investigated and will result in a response that
59 is deemed necessary and appropriate to the circumstances. The project team is
60 obligated to maintain confidentiality with regard to the reporter of an incident.
61 Further details of specific enforcement policies may be posted separately.
62
63 Project maintainers who do not follow or enforce the Code of Conduct in good
64 faith may face temporary or permanent repercussions as determined by other
65 members of the project's leadership.
66
67 ## Attribution
68
69 This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
70 available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
71
72 [homepage]: https://www.contributor-covenant.org
73
74 For answers to common questions about this code of conduct, see
75 https://www.contributor-covenant.org/faq
0 The Artistic License 2.0
1
2 Copyright (c) 2000-2006, The Perl Foundation.
3
4 Everyone is permitted to copy and distribute verbatim copies
5 of this license document, but changing it is not allowed.
6
7 Preamble
8
9 This license establishes the terms under which a given free software
10 Package may be copied, modified, distributed, and/or redistributed.
11 The intent is that the Copyright Holder maintains some artistic
12 control over the development of that Package while still keeping the
13 Package available as open source and free software.
14
15 You are always permitted to make arrangements wholly outside of this
16 license directly with the Copyright Holder of a given Package. If the
17 terms of this license do not permit the full use that you propose to
18 make of the Package, you should contact the Copyright Holder and seek
19 a different licensing arrangement.
20
21 Definitions
22
23 "Copyright Holder" means the individual(s) or organization(s)
24 named in the copyright notice for the entire Package.
25
26 "Contributor" means any party that has contributed code or other
27 material to the Package, in accordance with the Copyright Holder's
28 procedures.
29
30 "You" and "your" means any person who would like to copy,
31 distribute, or modify the Package.
32
33 "Package" means the collection of files distributed by the
34 Copyright Holder, and derivatives of that collection and/or of
35 those files. A given Package may consist of either the Standard
36 Version, or a Modified Version.
37
38 "Distribute" means providing a copy of the Package or making it
39 accessible to anyone else, or in the case of a company or
40 organization, to others outside of your company or organization.
41
42 "Distributor Fee" means any fee that you charge for Distributing
43 this Package or providing support for this Package to another
44 party. It does not mean licensing fees.
45
46 "Standard Version" refers to the Package if it has not been
47 modified, or has been modified only in ways explicitly requested
48 by the Copyright Holder.
49
50 "Modified Version" means the Package, if it has been changed, and
51 such changes were not explicitly requested by the Copyright
52 Holder.
53
54 "Original License" means this Artistic License as Distributed with
55 the Standard Version of the Package, in its current version or as
56 it may be modified by The Perl Foundation in the future.
57
58 "Source" form means the source code, documentation source, and
59 configuration files for the Package.
60
61 "Compiled" form means the compiled bytecode, object code, binary,
62 or any other form resulting from mechanical transformation or
63 translation of the Source form.
64
65
66 Permission for Use and Modification Without Distribution
67
68 (1) You are permitted to use the Standard Version and create and use
69 Modified Versions for any purpose without restriction, provided that
70 you do not Distribute the Modified Version.
71
72
73 Permissions for Redistribution of the Standard Version
74
75 (2) You may Distribute verbatim copies of the Source form of the
76 Standard Version of this Package in any medium without restriction,
77 either gratis or for a Distributor Fee, provided that you duplicate
78 all of the original copyright notices and associated disclaimers. At
79 your discretion, such verbatim copies may or may not include a
80 Compiled form of the Package.
81
82 (3) You may apply any bug fixes, portability changes, and other
83 modifications made available from the Copyright Holder. The resulting
84 Package will still be considered the Standard Version, and as such
85 will be subject to the Original License.
86
87
88 Distribution of Modified Versions of the Package as Source
89
90 (4) You may Distribute your Modified Version as Source (either gratis
91 or for a Distributor Fee, and with or without a Compiled form of the
92 Modified Version) provided that you clearly document how it differs
93 from the Standard Version, including, but not limited to, documenting
94 any non-standard features, executables, or modules, and provided that
95 you do at least ONE of the following:
96
97 (a) make the Modified Version available to the Copyright Holder
98 of the Standard Version, under the Original License, so that the
99 Copyright Holder may include your modifications in the Standard
100 Version.
101
102 (b) ensure that installation of your Modified Version does not
103 prevent the user installing or running the Standard Version. In
104 addition, the Modified Version must bear a name that is different
105 from the name of the Standard Version.
106
107 (c) allow anyone who receives a copy of the Modified Version to
108 make the Source form of the Modified Version available to others
109 under
110
111 (i) the Original License or
112
113 (ii) a license that permits the licensee to freely copy,
114 modify and redistribute the Modified Version using the same
115 licensing terms that apply to the copy that the licensee
116 received, and requires that the Source form of the Modified
117 Version, and of any works derived from it, be made freely
118 available in that license fees are prohibited but Distributor
119 Fees are allowed.
120
121
122 Distribution of Compiled Forms of the Standard Version
123 or Modified Versions without the Source
124
125 (5) You may Distribute Compiled forms of the Standard Version without
126 the Source, provided that you include complete instructions on how to
127 get the Source of the Standard Version. Such instructions must be
128 valid at the time of your distribution. If these instructions, at any
129 time while you are carrying out such distribution, become invalid, you
130 must provide new instructions on demand or cease further distribution.
131 If you provide valid instructions or cease distribution within thirty
132 days after you become aware that the instructions are invalid, then
133 you do not forfeit any of your rights under this license.
134
135 (6) You may Distribute a Modified Version in Compiled form without
136 the Source, provided that you comply with Section 4 with respect to
137 the Source of the Modified Version.
138
139
140 Aggregating or Linking the Package
141
142 (7) You may aggregate the Package (either the Standard Version or
143 Modified Version) with other packages and Distribute the resulting
144 aggregation provided that you do not charge a licensing fee for the
145 Package. Distributor Fees are permitted, and licensing fees for other
146 components in the aggregation are permitted. The terms of this license
147 apply to the use and Distribution of the Standard or Modified Versions
148 as included in the aggregation.
149
150 (8) You are permitted to link Modified and Standard Versions with
151 other works, to embed the Package in a larger work of your own, or to
152 build stand-alone binary or bytecode versions of applications that
153 include the Package, and Distribute the result without restriction,
154 provided the result does not expose a direct interface to the Package.
155
156
157 Items That are Not Considered Part of a Modified Version
158
159 (9) Works (including, but not limited to, modules and scripts) that
160 merely extend or make use of the Package, do not, by themselves, cause
161 the Package to be a Modified Version. In addition, such works are not
162 considered parts of the Package itself, and are not subject to the
163 terms of this license.
164
165
166 General Provisions
167
168 (10) Any use, modification, and distribution of the Standard or
169 Modified Versions is governed by this Artistic License. By using,
170 modifying or distributing the Package, you accept this license. Do not
171 use, modify, or distribute the Package, if you do not accept this
172 license.
173
174 (11) If your Modified Version has been derived from a Modified
175 Version made by someone other than you, you are nevertheless required
176 to ensure that your Modified Version complies with the requirements of
177 this license.
178
179 (12) This license does not grant you the right to use any trademark,
180 service mark, tradename, or logo of the Copyright Holder.
181
182 (13) This license includes the non-exclusive, worldwide,
183 free-of-charge patent license to make, have made, use, offer to sell,
184 sell, import and otherwise transfer the Package with respect to any
185 patent claims licensable by the Copyright Holder that are necessarily
186 infringed by the Package. If you institute patent litigation
187 (including a cross-claim or counterclaim) against any party alleging
188 that the Package constitutes direct or contributory patent
189 infringement, then this Artistic License to you shall terminate on the
190 date that such litigation is filed.
191
192 (14) Disclaimer of Warranty:
193 THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
194 IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
195 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
196 NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
197 LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
198 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
199 DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
200 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0 CHANGES.MD
1 CODE_OF_CONDUCT.md
2 LICENSE
03 Makefile.PL
14 MANIFEST
25 MANIFEST.SKIP
3 README
6 README.MD
47 bin/hostfiles
58 lib/Hostfile/Manager.pm
69 t/fixtures/fragments/f1
33 "Anthony J. Mirabella"
44 ],
55 "dynamic_config" : 1,
6 "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010",
6 "generated_by" : "ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010",
77 "license" : [
88 "perl_5"
99 ],
1010 "meta-spec" : {
1111 "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
12 "version" : "2"
12 "version" : 2
1313 },
1414 "name" : "Hostfile-Manager",
1515 "no_index" : {
5353 }
5454 },
5555 "version" : "0.09",
56 "x_serialization_backend" : "JSON::PP version 2.27400_02"
56 "x_serialization_backend" : "JSON::PP version 4.04"
5757 }
99 configure_requires:
1010 ExtUtils::MakeMaker: '0'
1111 dynamic_config: 1
12 generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010'
12 generated_by: 'ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010'
1313 license: perl
1414 meta-spec:
1515 url: http://module-build.sourceforge.net/META-spec-v1.4.html
0 [![Build Status](https://travis-ci.org/Aneurysm9/hostfile_manager.svg?branch=master)](https://travis-ci.org/Aneurysm9/hostfile_manager)
1
2 This is a simple Perl script for managing multiple hostfile configurations on *NIX systems. The `hostfiles` script is built on top of the Hostfile::Manager module. The module provides an object-oriented interface to managing a list of hostfile fragments and enabling or disabling them in a target hostfile.
3
4 To get started, create a directory /etc/hostfiles and place one or more files in the directory containing hostfile fragments. The fragment filename will be used to tell the hostfile manager what to enable or disable.
5
6 Using the `hostfiles` is simple. It has two primary options: `--enable` and `--disable`. You can specify each multiple times or pass comma-separated lists of fragment filenames.
7
8 For example, to enable a hostfile fragment called "staging":
9
10 $ hostfiles --enable staging
11
12 You can ask for the status of the available hostfile fragments by passing the --status flag:
13
14 $ hostfiles --status
15 + local
16 $
17
18 The first character of the status ouput will be ' ' if the fragment is not enabled, '+' if it is enabled, and '*' if it is enabled and has been modified in /etc/hosts.
19
20 Passing the --interactive flag will ignore any --enable, --disable, or --status options and present a list of hostfile fragments that can be enabled or disabled interactively.
21
22 License
23 ----
24
25 Copyright (c) 2010-11,2018 Anthony J. Mirabella. All rights reserved.
26 This program is free software; you can redistribute it and/or
27 modify it under the same terms as Perl itself.
0 libhostfile-manager-perl (0.09+git20181223.1.575eecb-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Thu, 11 Nov 2021 18:09:27 -0000
5
06 libhostfile-manager-perl (0.09-2) unstable; urgency=medium
17
28 [ Debian Janitor ]