X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-it1-f174.google.com (mail-it1-f174.google.com [209.85.166.174]) by lists.alpinelinux.org (Postfix) with ESMTP id C1ACDF8520D for ; Sun, 30 Dec 2018 11:40:13 +0000 (UTC) Received: by mail-it1-f174.google.com with SMTP id h193so31628031ita.5 for ; Sun, 30 Dec 2018 03:40:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Sy/BEQ4ahYl5Mz00ZyGRPU5f4+JHyQut+Vh2DWE89SA=; b=ncpqA8pMBVBegJNLx3P5JcYkhLEc0tTWg0XbBNrzo5qoUQiOPRWewFxV51s+DsBSe3 MNearnOhf/L0ciLjra9z/sMRPmTCcmlweiGO+uoPXIRM4cCGd6dfmpzwqmlCl6uz/qF6 KcCBALz041PqOsWkBQczvx+8B1TnEsh0UADFY42VlBfLKTjxOu3ufMx6/l9377yBOI5t lmPyJLd3jvia3z/wZdTw3zEtxLpqbItedMMuc4Wkh9MXhKe8J/jRqbLf4uqgCGcSMrct Tn6tUCI9Xw+wxYOpNJDzB1A1SyfQqNHf9p97vTX//H0puKTuWIskQMAyB4II9a9RtZz6 beTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Sy/BEQ4ahYl5Mz00ZyGRPU5f4+JHyQut+Vh2DWE89SA=; b=UIeTLATfIAmHlpHDmoXjWAaDbUW0MZ7c5FGZzSBwgkKyuZPP8IZ0qah/ARpL2jw93l iSzq7jGmBh+4etyW+LXeUbdziiwpkjNil6zh78lnrW7ygUsoPkTP0zDb0n96AgGIf5Ts U3+51qfmTX9+5Raal2Ipj/3GALAdVaV/i9ig/UIDMdFw+cuORU4eR2cOrgJScoPYQaaA 8g4uMCk+EABTRqkkhs25ZrEdg1dV8MzR7gw8+QI7HLcIaRt7oZ2PrBJjPFeZXGRt/5Jq S96+hEFAEIEHSfV8HnaEvca3DEDGHbrusV5awBhjurd/6qvQrwp+IUkSk2yX/ZZwKGCN QDLw== X-Gm-Message-State: AA+aEWYyuPdyOPTlLSvc6Bp6vO3QJtWRURBkIEgb5TShbgUoTyWNyH9h aSeq4FzgTg8NACWIWmLazxuTnI5sKmkyVOfO5Ou2+Mh+Vnc= X-Google-Smtp-Source: AFSGD/Ug4GeOvK3VkqkxRKrEvm2i4DjkUtt8i8N8H6duYutMhzDJX2reO/8TuE3XH7t0RdJ2QcAi+y+WjsfB+vY0rcs= X-Received: by 2002:a24:fe06:: with SMTP id w6mr21662983ith.108.1546170013100; Sun, 30 Dec 2018 03:40:13 -0800 (PST) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 From: Martin Rusko Date: Sun, 30 Dec 2018 12:40:01 +0100 Message-ID: Subject: [alpine-devel] Install action scripts for subpackages To: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" While packaging https://github.com/arkanis/minidyndns, I thought it will be good idea to stop the service before removal. That is to use .pre-deinstall script for that. However, such script should be included in the subpackage called minidyndns-openrc and not in the main package for it to work properly. As far as I was able to understand the code in /usr/bin/abuild, it should be sufficient to include the script minidyndns-openrc.pre-deinstall in the *install* variable and it should be placed correctly in the minidyndns-openrc subpackage. I tried it and it worked. Is that the supported way of dealing with it? If yes, could I update https://wiki.alpinelinux.org/wiki/APKBUILD_Reference with the following text? : Also scripts for subpackages can be listed here, e.g. with ''pkgname'' set to '''mypackage''' and ''install'' containing '''$pkgname-openrc.pre-deinstall''', the script '''mypackage-openrc.pre-deinstall''' will be included in the subpackage '''$pkgname-openrc''' instead of the main package. Thanks and Regards, Martin --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---