Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging hldig for Slackware #127

Open
andy5995 opened this issue Sep 7, 2018 · 1 comment
Open

packaging hldig for Slackware #127

andy5995 opened this issue Sep 7, 2018 · 1 comment

Comments

@andy5995
Copy link
Contributor

andy5995 commented Sep 7, 2018

Pretty easy to get a package submitted to http://slackbuilds.org/

It's not the official Slack repo, but it's a secondary repo for Slackware packages.

The submission doesn't include any source code or binaries, just a few files that have the info on where to download the hldig distribution from.

htdig is already included with the official Slack distribution, so there is a htdlg.Slackbuild that could be used as a template

http://slackblog.com/slackware/slackware64-14.2/source/n/htdig/htdig.SlackBuild

A slack-desc file needs to be included, and looks like this

https://mirrors.slackware.com/slackware/slackware64-14.2/source/n/htdig/slack-desc

A doinst.sh file can be included, and that looks like...

#!/bin/sh
config() {
  NEW="$1"
  OLD="`dirname $NEW`/`basename $NEW .new`"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}
config etc/htdig/htdig.conf.new

What's evenutally submitted to Slackbuilds.org would be very small file named hldig.tar.gz
which contains about 5 or 6 files.

You can see an example by looking at the anacron page on Slackbuilds, and downloading anacron.tar.gz from that page.

One the tar.gz is created, it can be submitted at http://slackbuilds.org/submit/

@andy5995
Copy link
Contributor Author

andy5995 commented Sep 7, 2018

Oh, and it's absolutely best to test it before submitting, which I can do for anyone who wants to work on this but doesn't have access to a Slackware installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant