sipb / config-package-dev Goto Github PK
View Code? Open in Web Editor NEWDebhelper (and CDBS) modules for building configuration packages
Home Page: https://debathena.mit.edu/config-package-dev
Debhelper (and CDBS) modules for building configuration packages
Home Page: https://debathena.mit.edu/config-package-dev
Hi!
Is it possible to source a transform operation with user prompt during installation? That is to say, to combine debconf with config-package-dev.
I took a quick look to https://debathena.mit.edu/config-package-dev/ and to the mailing list archive but I couldn't find anything related.
Thanks!
Alejandro
Adding 'diversion of /etc/issue to /etc/issue.kicksecure-orig by kicksecure-base-files'
dpkg-divert: warning: diverting file '/etc/issue' from an Essential package with rename is dangerous, use --no-rename
Adding 'diversion of /etc/motd to /etc/motd.kicksecure-orig by kicksecure-base-files'
Adding 'diversion of /etc/skel/.bashrc to /etc/skel/.bashrc.kicksecure-orig by kicksecure-base-files'
dpkg-divert: warning: diverting file '/etc/skel/.bashrc' from an Essential package with rename is dangerous, use --no-rename
Quote https://manpages.debian.org/testing/dpkg/dpkg-divert.1.en.html
--rename
Actually move the file aside (or back). dpkg-divert will abort operation in case the destination file already exists. This is the common behavior used for diversions of files from the non-Essential package set (see --no-rename for more details).--no-rename
Specifies that the file should not be renamed while adding or removing the diversion into the database (since dpkg 1.19.1). This is intended for diversions of files from the Essential package set, where the temporary disappearance of the original file is not acceptable, as it can render the system non-functional. This is the default behavior, but that will change in the dpkg 1.20.x cycle.
Would it make sense to use --no-rename
generally?
What is the disadvantage of --no-rename
?
I posted about this on the mailing list, but no one saw it. I figured I would post here in case someone happens to be monitoring these issues.
Question: Is there a method for converting a "transform" operation into a "displace" operation?
I currently am developing a package that already has a "transform" of a conffile. I would like to, instead, displace this conffile and then install my own version written from scratch...
Is this something that config-package-dev allows?
Thanks!
Several Debathena packages use a transform script that's something like perl -0pe 's/^foo$/bar/m or die'
to get the effect of sed s/^foo$/bar/
but cause a build-time error if the regex doesn't match anything. We should document this and why it works.
See for instance https://github.com/mit-athena/ssh-client-config/blob/master/debian/transform_ssh_config.debathena
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.