You are not logged in.

#1 2020-02-16 21:30:17

CuBeRJAN
Member
Registered: 2020-02-16
Posts: 4

[solved] Package not removing properly

Hello,

I have the following PKGBUILD:

# Maintainer: Jan Novotny <shadenk30011@gmail.com>
pkgname=wpa_wrapper
pkgver=1.0
pkgrel=1
pkgdesc="Network management utility"
arch=(any)
license=('GPL3')
depends=(sudo iw wpa_supplicant python3 net-tools)
makedepends=(git)
source=("$pkgname::git+https://github.com/CuBeRJAN/$pkgname-cleanup.git"
                "https://raw.githubusercontent.com/CuBeR … ts/main.py")
sha256sums=('SKIP'
                        '3da2a1fdf21064eff3389a870feab069b6bf95ab3253e6ce35d6fc7c3bb6d0be')

package() {
  cd "$pkgname"

  sudo make DESTDIR="$pkgdir/" install
}

--------------------------------------------------------------------------------------------------------------

It installs just fine, but removing the package leaves leftover files. What did I do wrong?

Last edited by CuBeRJAN (2020-02-16 23:44:51)

Offline

#2 2020-02-16 21:54:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [solved] Package not removing properly

And what's the problem specifically? What files?

Last edited by Scimmia (2020-02-16 21:55:31)

Offline

#3 2020-02-16 21:55:14

CuBeRJAN
Member
Registered: 2020-02-16
Posts: 4

Re: [solved] Package not removing properly

Scimmia wrote:

And what's the problem?

When uninstalling with 'pacman -Rs wpa_wrapper' it leaves all the files under /usr/share and /usr/bin

Offline

#4 2020-02-16 21:55:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [solved] Package not removing properly

Sorry, I edited for clarity while you were responding. What files, specifically?

Edit: Oh, I see the problem, you're not creating a package at all. Remove sudo, which is installing files directly into the filesystem, then fix the makefile to respect DESTDIR

Last edited by Scimmia (2020-02-16 21:57:22)

Offline

#5 2020-02-16 21:57:49

CuBeRJAN
Member
Registered: 2020-02-16
Posts: 4

Re: [solved] Package not removing properly

Scimmia wrote:

Sorry, I edited for clarity while you were responding. What files, specifically?

/usr/bin/wpa_wrapper
/usr/bin/wpa_wrapper-last
/usr/share/wpa_wrapper/ (entire directory)

Offline

#6 2020-02-16 21:58:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [solved] Package not removing properly

And another edit while you were responding sad

Offline

#7 2020-02-16 21:59:55

CuBeRJAN
Member
Registered: 2020-02-16
Posts: 4

Re: [solved] Package not removing properly

Scimmia wrote:

Sorry, I edited for clarity while you were responding. What files, specifically?

Edit: Oh, I see the problem, you're not creating a package at all. Remove sudo, which is installing files directly into the filesystem, then fix the makefile to respect DESTDIR

Thanks! I don't know how I could miss something so obvious...

Offline

Board footer

Powered by FluxBB