You are not logged in.
Hi,
if i install a package from the install script of its source and don't through pacman or yaourt. How i inform pacman that the package is in my system so i can update or delete the package with pacman.
Thanks.
Last edited by ratamahata (2019-12-24 19:18:32)
Offline
You don't.
The only way that pacman will know about the software is if you write a PKGBUILD and build it into an Arch package...
https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/Ar … Repository
What specific software are you talking about here?
Offline
I have some issues with vuurmuur(aur). Witch has being flagged out of date. I install it from the official page (source - install script) and is working fine.
But i want to manage it through pacman. And also because the command for uninstall from the official page doesn't work, i have to search and delete manually (with 'locate') all the dirs.
Thank you for your info... very useful..
So now i suppose i have to mark the topic as solved, am i right?
Offline
You could just have easily updated the AUR PKGBUILD...
You can mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
Ok. Can i do something with the updated PKGBUILD so other user can use it too? Or just the maintainer or the package can?
Offline
You can modify it for your requirements. Only the maintainer can update it on the AUR.
Offline
You could post the PKGBUILD somewhere and put the link in a comment on the aur page, then maintainer and other viewers can use it.
Last edited by Lone_Wolf (2019-12-24 21:00:53)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Arch_User_Repository#Flagging_packages_out-of-date you could file an orphan request.
Offline
Ok i have modify the PKGBUILD here. But now i got this error
Starting build()...
tar (child): libvuurmuur-0.8.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build vuurmuur.
I suppose it is a missing package to the source, right?
Here is the whole output
# yaourt -S vuurmuur
==> Downloading vuurmuur PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
x modules.conf
x vuurmuur.install
x vuurmuur.rc
x vuurmuur.script
x vuurmuur.service
dracorp commented on <a href="#comment-455390" class="date">2014-09-16 12:59</a>
@dopm: added but this file is created during configuration.
dracorp commented on <a href="#comment-455389" class="date">2014-09-16 12:59</a>
@dopm: added but this file is created during configuration.
macxcool commented on <a href="#comment-592795" class="date">2017-04-23 18:48</a>
@dracorp I just installed vuurmuur using your PKGBUILD on an armv7h Globalscale Mirabox. It works beautifully. If you want to you can safely add armv7h to your list of arch's in your PKGBUILD.
dracorp commented on <a href="#comment-592800" class="date">2017-04-23 21:01</a>
@maxcool, thx. I trust you that it works.
ratamahata commented on <a href="#comment-717880" class="date">2019-11-24 11:51</a>
vuurmuur 0.7-3 (2017-04-23 21:06)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==>
Please add $VISUAL to your environment variables
for example:
export VISUAL="vim" (in ~/.bashrc)
(replace vim with your favorite editor)
==> Edit PKGBUILD with: nano
==> vuurmuur dependencies:
- libnetfilter_log (already installed)
- iptables (already installed)
- ncurses (already installed)
- libjpeg (already installed)
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==>
==> vuurmuur dependencies:
- libnetfilter_log (already installed)
- iptables (already installed)
- ncurses (already installed)
- libjpeg (already installed)
==> Edit vuurmuur.install ? [Y/n] ("A" to abort)
==> --------------------------------------------
==> n
==> Continue building vuurmuur ? [Y/n]
==> ----------------------------------
==>
==> Building and installing package
==> Making package: vuurmuur 0.8-1 (Fri 27 Dec 2019 01:06:17 PM EET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading vuurmuur-0.8.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1267k 100 1267k 0 0 449k 0 0:00:02 0:00:02 --:--:-- 449k
-> Found modules.conf
-> Found vuurmuur.rc
-> Found vuurmuur.service
-> Found vuurmuur.script
==> Validating source files with sha256sums...
vuurmuur-0.8.tar.gz ... Passed
modules.conf ... Passed
vuurmuur.rc ... Passed
vuurmuur.service ... Passed
vuurmuur.script ... Passed
==> Extracting sources...
-> Extracting vuurmuur-0.8.tar.gz with bsdtar
==> Starting build()...
tar (child): libvuurmuur-0.8.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build vuurmuur.
==> Restart building vuurmuur ? [y/N]
==> ---------------------------------
==> %
Offline
The following is build tested only.
# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# Contributor: skydrome <skydrome@i2pmail.org>
# Contributor: Valere Monseur <valere_monseur@hotmail.com>
# Contributor: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
# Contributor: (asper, noob
pkgname=vuurmuur
pkgver=0.8
pkgrel=1
pkgdesc='powerful front-end for iptables aimed at system-administrators who need a decent firewall, but dont have netfilter specific knowledge'
arch=('i686' 'x86_64' 'armv7h')
url='http://www.vuurmuur.org'
license=('GPL')
install='vuurmuur.install'
depends=(libnetfilter_log iptables ncurses libjpeg)
optdepends=('conntrack-tools: for connection tracking'
'iproute2: for traffic shapping'
'iptrafvol: for traffic volume logging')
conflicts=(vuurmuur-devel)
backup=('etc/vuurmuur/config.conf'
'etc/vuurmuur/modules.conf'
'etc/vuurmuur/vuurmuur_conf.conf'
'etc/vuurmuur/plugins/textdir.conf'
)
source=(ftp://ftp.vuurmuur.org/releases/$pkgver/${pkgname}-$pkgver.tar.gz
modules.conf
vuurmuur.rc
vuurmuur.service
vuurmuur.script)
sha256sums=('ff44c6be378d629ec3c5637830f87f2a41cff8f679c1f58bad901eebc69f4f1e'
'a18d4093075f8e0a24f902780b04d03116be8c057b139a7502d8517009bd65e0'
'f1b49c9e1480f9d37ef2df779f725f926552f8713f7aacfc49e0b359e10f27a5'
'1bf559e49ac64cdf6bff9b003adbe97af1b222d59ec49242545cf13daee07a24'
'de4cee0e33d3431c985289d8de2844eeb1b1e614e69b7e3b1d6c99e8cda3aa4f')
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="$pkgdir" install
# make directory structure
install -dm700 "$pkgdir"/etc/$pkgname
install -dm700 "$pkgdir"/etc/${pkgname}/plugins
install -dm755 "$pkgdir"/usr/share/$pkgname/textdir/{interfaces,services,zones,rules}
install -dm700 "$pkgdir"/var/log/$pkgname
# install daemon and log
install -Dm755 ../vuurmuur.rc "$pkgdir"/etc/rc.d/$pkgname
# install systemd's files
install -Dm755 ../vuurmuur.script "$pkgdir"/usr/lib/systemd/scripts/vuurmuur
install -Dm644 ../vuurmuur.service "$pkgdir"/usr/lib/systemd/system/vuurmuur.service
# install configuration
install -Dm600 "$pkgdir"/usr/share/vuurmuur/config/config.conf.sample \
"$pkgdir"/etc/${pkgname}/config.conf
install -Dm600 ../modules.conf "$pkgdir"/etc/${pkgname}/modules.conf
install -Dm600 "$pkgdir"/usr/share/vuurmuur/config/vuurmuur_conf.conf.sample \
"$pkgdir"/etc/${pkgname}/${pkgname}_conf.conf
sed -i "$pkgdir"/etc/${pkgname}/config.conf \
-e 's|"/sbin/tc|"/usr/bin/tc|' \
-e 's|"/sbin/ip6tables|"/usr/bin/ip6tables|' \
-e 's|"/sbin/iptables|"/usr/bin/iptables|' \
-e 's|"/sbin/ip6tables-restore|"/usr/bin/ip6tables-restore|' \
-e 's|"/sbin/iptables-restore|"/usr/bin/iptables-restore|'
echo "LOCATION=\"/etc/${pkgname}/textdir\"" > "$pkgdir"/etc/${pkgname}/plugins/textdir.conf
# default firewall setup in /usr/share
touch "$pkgdir"/usr/share/${pkgname}/textdir/rules/rules.conf
touch "$pkgdir"/usr/share/${pkgname}/textdir/rules/blocklist.conf
# cp -R zones/* "$pkgdir"/usr/share/${pkgname}/textdir/zones/
mv "$pkgdir"/usr/share/${pkgname}/services/* "$pkgdir"/usr/share/${pkgname}/textdir/services/
}
Offline
Ah ... the problem in post #9 should be blindingly obvious. What did you expect to happen? You know already that the PKGBUILD currently in the AUR doesn't work. And you have a new PKGBUILD that allegedly does. But your use yaourt (just stop doing that) and the build fails. Do you expect yaourt to read your mind and magically know you don't want to use the PKGBUILD in the AUR? Must it also devine the location where you posted your new PKGBUILD?
# yaourt -S vuurmuur
==> Downloading vuurmuur PKGBUILD from AUR...
As it says, it downloads the PKGBUILD from the AUR.
Side note: why are you running yaourt as root?
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Trilby I believe ratamahata was using a modified PKGBUILD
vuurmuur 0.7-3 (2017-04-23 21:06)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==>
Please add $VISUAL to your environment variables
for example:
export VISUAL="vim" (in ~/.bashrc)
(replace vim with your favorite editor)
==> Edit PKGBUILD with: nano
==> vuurmuur dependencies:
- libnetfilter_log (already installed)
- iptables (already installed)
- ncurses (already installed)
- libjpeg (already installed)
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==>
==> vuurmuur dependencies:
- libnetfilter_log (already installed)
- iptables (already installed)
- ncurses (already installed)
- libjpeg (already installed)
==> Edit vuurmuur.install ? [Y/n] ("A" to abort)
==> --------------------------------------------
==> n
However updating the package version and checksum is not enough as there have been upstream changes.
ibvuurmuur.tar.gz vuurmuur.tar.gz vuurmuur_conf.tzr.gz shipped inside the source archive are no longer present.
There is now a top level configure and Makefile.
vuurmuur.logrotate is now under debian (I dropped this).
/var/log/messages is not present in config.conf I dropped the sed expression which replaced it with /var/log/iptables.log .
I changed references to /sbin/ to /usr/bin instead of /usr/sbin .
I could not find the zones directory in the new layout.
Last edited by loqs (2019-12-27 14:28:18)
Offline
loqs thank you very much man... you are the best... i tried to compiled it with
--i
to
libvuurmuur-${pkgver}
with no luck. Now i install it and i am going to sett it up, to see.. I sent an mail too, to the vuurmuur dev mailing list about the missing packages, but i don't have an answer yet.
Offline
Sorry - I missed the call to nano in the yaourt output ... that is really a long way about it, but I guess it'd work.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Aaand it works like a charm... I have some issues only when i add some external services but i am going to solve it some how.
loqs i paste your PKGBUILD to my pastebin and add to the vuurmuurAurPage so other people can use it too. If you have a problem with that tell me to delete it.
Thanks again!
Offline