Comments (2)
from macathena.
I got part of an answer, which was to use post-activate step to copy the files with some TCL code like this:
post-destroot {
file rename "${destroot}${prefix}/etc/ssh/sshd_config" "${destroot}${prefix}/etc/ssh/sshd_config.macathena.dist"
file rename "${destroot}${prefix}/etc/ssh/ssh_config" "${destroot}${prefix}/etc/ssh/ssh_config.macathena.dist"
}
post-activate {
if {![file exists "${prefix}/etc/ssh/sshd_config"]} {
copy "${prefix}/etc/ssh/sshd_config.macathena.dist" "${prefix}/etc/ssh/sshd_config"
}
if {![file exists "${prefix}/etc/ssh/ssh_config"]} {
copy "${prefix}/etc/ssh/ssh_config.macathena.dist" "${prefix}/etc/ssh/ssh_config"
}
This gets us part of the way there, in that we can check for the config file before copying ours in, but it doesn’t help us with uninstalls. For that, I think we would need to be doing the config copy during the destroot phase, but I’m stuck on how to actually achieve that, since this isn’t a compiled package where you would use make.
The downside is that according to http://www.mail-archive.com/[email protected]/msg31136.html, there is currently no provision for MacPorts to later remove files created that way. We'd also have to worry about config files that conflict with those provided by other ports, such as ssh_config and sshd_config conflicting with MacPorts provided OpenSSH..
I suppose, in the interim, we could just make people install Kerberos Extras from the IS&T website, or just stage the files in ${prefix}/etc/foo/foo.macathena.dist, and make a note for people to opy them into place. The reason I'm trying to avoid Kerberos Extras is I’d rather not depend on IS&T to continue packaging that, and it’s also an extra step that deviates from how DebAthena does it.
from macathena.
Related Issues (19)
- moira (macathena/moira) HOT 5
- ssh-config HOT 1
- one-line install HOT 1
- remctl homebrew-core formula should come with a knob to build/install using MIT Kerberos
- use post-destroot to rename chfn/chsh to chfn.moira/chsh.moira (macports) HOT 1
- "Unknown code krb5 $n" (homebrew/core/moira) HOT 1
- add/attach/detach HOT 3
- use error-table provided with e2fsprogs for moira HOT 1
- Get zephyr to compile on OS X HOT 1
- moira(1) abort traps due to overlapping buffers
- Add Travis CI integration for testing new commits
- OpenAFS Client (Caskroom/cask/auristor-openafs-client)
- MIT krb5 (homebrew/dupes/krb5) HOT 1
- Macathena Logo HOT 14
- hesiod (homebrew/core/hesiod)
- remctl (homebrew/core/remctl)
- pyhesiodfs (homebrew/core/pyhesiodfs) HOT 5
- kerberos-config HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macathena.