summaryrefslogtreecommitdiffstats
path: root/misc/pciids/Makefile
blob: e50a427d57262b11586c340d1a4c0f01f22a7b6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:    pciids
# Date created:     2006-08-07
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#    $MCom: ports/misc/pciids/Makefile,v 1.3 2006/09/09 14:40:41 ahze Exp $

PORTNAME=   pciids
PORTVERSION=    20060916
CATEGORIES= misc
MASTER_SITES=   http://www.ahze.net/~ahze/distfiles/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ahze

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Pci.ids database from pciutils

USE_BZIP2=  yes
NO_BUILD=   yes
PLIST_FILES=    %%DATADIR%%/pci.ids \
        %%DATADIR%%/pci.db
PLIST_DIRS= %%DATADIR%%

do-install:
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/pci.ids ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/pci.db ${DATADIR}

# Below only contains code to create a tar file for this beast
CT_DATE!=   date "+%Y%m%d"
CT_WRKSRC=  ${WRKDIR}/tmp
CT_DESTDIR= ${PORTNAME}-${CT_DATE}
CT_TEMPDIR= ${CT_WRKSRC}/${CT_DESTDIR}
CT_MASTER_SITE= http://pciids.sourceforge.net/v2.2/
CT_DISTFILES=   pci.ids pci.db

maketar:
    ${MKDIR} ${CT_TEMPDIR}
.for file in ${CT_DISTFILES}
    (cd ${CT_TEMPDIR} && ${FETCH_CMD} ${CT_MASTER_SITE}/${file})
.endfor
    (cd ${CT_WRKSRC} && ${TAR} -jcf ${PORTNAME}-${CT_DATE}.tar.bz2 ${CT_DESTDIR})

.include <bsd.port.mk>