[SOLVED] /usr/sbin/sqg configuration to use sqg to manage queue files
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/usr/sbin/sqg configuration to use sqg to manage queue files
Here is a snippet of my /usr/sbin/sqg configuration:
Code:
#!/bin/sh
# $Id$
# sqg - sbopkg queuefile generator
# A script designed to generate queuefiles for sbopkg with recursively-listed
# dependencies from the REQUIRES line of the .info files.
# Copyright 2013 Chess Griffin <chess@chessgriffin.com> and
# slakmagik <slakmagik@gmail.com>
# Copyright 2016-2021 Willy Sudiarto Raharjo <willysr@sbopkg.org>
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
# NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
### OPTIONAL CONFIGURATION BELOW ###
LOCAL_SBOPKG_CONF=${LOCAL_SBOPKG_CONF:-/root/.sbopkg.conf}
SBOPKG_CONF=${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}
### NO CHANGES SHOULD BE NECESSARY BELOW THIS LINE ###
I want to use sqg to manage queuefiles e.g. issuing the command sqg -p "pkg1 pkg2" to generate queue file for pkg1 and pkg2.
Yes looks good just make sure sqg's REPO_NAME and REPO_BRANCH are the same as those you have defined in /etc/sbopkg/sbopkg.conf. Good idea using skip_empty:-no as that adds a package to the queue even if it has no dependencies.
it's ok to use the unmodified last one, the one from this package (that I seem to understand you are already using): it should already source the sbopkg configuration files (the sanity_checks() function in /usr/libexec/sbopkg/sqg/functions), as you pasted in your first post
and use the variables defined there, so if you already have configured the correct repository in those files you shouldn't need to add any additional configuration in /usr/sbin/sqg.
it's ok to use the unmodified last one, the one from this package (that I seem to understand you are already using): it should already source the sbopkg configuration files (the sanity_checks() function in /usr/libexec/sbopkg/sqg/functions), as you pasted in your first post
and use the variables defined there, so if you already have configured the correct repository in those files you shouldn't need to add any additional configuration in /usr/sbin/sqg.
Thank you Matteo, that is the information I required.
sqg works as desired.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.